def METHOD_NAME(self, text: str) -> List[int]:
    """ Creates a mapping from target labels to ids."""
    tokens = []
    for word_id, word in enumerate(text.split()):
        tokens.append(self.labels_tkn2id[word])
    return tokens