src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py/load_entity_vocab
def load_entity_vocab(entity_vocab_path):
    entity_vocab = {}
    with open(entity_vocab_path, "r", encoding="utf-8") as f:
        for index, line in enumerate(f):
            title, _ = line.rstrip().split("\t")
            entity_vocab[title] = index

    return entity_vocab