def build_reverse_dictionary(word_to_id):
 reverse_dictionary = dict(zip(word_to_id.values(), word_to_id.keys()))
 return reverse_dictionary

def build_reverse_dictionary ( word_to_id ) : reverse_dictionary = dict ( zip ( word_to_id . values ( ) , word_to_id . keys ( ) ) ) return reverse_dictionary
given a dictionary for converting word to integer id .