@staticmethod
def _convert_words_to_tokens(words: List[Text], text: Text) -> List[Token]:
    running_offset = 0
    tokens = []
    for word in words:
        word_offset = text.index(word, running_offset)
        word_len = len(word)
        running_offset = (word_offset + word_len)
        tokens.append(Token(word, word_offset))
    return tokens
@staticmethod
def _convert_words_to_tokens(words: List[Text], text: Text) -> List[Token]:
    running_offset = 0
    tokens = []
    for word in words:
        word_offset = text.index(word, running_offset)
        word_len = len(word)
        running_offset = (word_offset + word_len)
        tokens.append(Token(word, word_offset))
    return tokens