def to_sequence(index, text):
    """Returns a list of integer indicies of lemmas in `text` to the word2idx
    vocab in `index`.

    :param index: word2idx vocab.

    :param text: list of tokens / lemmas / words to be indexed

    :returns: list of indicies
    """
    indexes = [index[word] for word in text if word in index]
    return indexes