excuse me i need to get like a dictionary contains the word with its index like this
def word_for_id(integer, tokenizer):
    for word, index in tokenizer.word_index.items():
        if index == integer:
            return word
    return None

but with using BERT i couldn’t find the equivalent as i got berttokenizer' object has no attribute 'word_index'