update get_vocab_dict method