src/transformers/models/transfo_xl/tokenization_transfo_xl.py/TransfoXLTokenizer/add_symbol
class TransfoXLTokenizer:    def add_symbol(self, sym):
        if sym not in self.sym2idx:
            self.idx2sym.append(sym)
            self.sym2idx[sym] = len(self.idx2sym) - 1