def METHOD_NAME(self, sents: [List[List[str]]], *args):
    if self.word_file_path is not None:
        return
    if self.char_level:
        items = set([char for sent in sents for word in sent for char in word])
    else:
        items = set([word for sent in sents for word in sent])
    items = ["<UNK>", "<PAD>"] + list(items)
    self._t2i = {k: v for v, k in enumerate(items)}
    self._i2t = {k: v for k, v in enumerate(items)}
    self.save_to_file(self.save_path)