def get_index2word(word2idx):
    """
    :param word2idx: dictionary of word to index
    :return: reverse order of input dictionary
    """
    idx2word = dict([(idx, word) for word, idx in word2idx.items()])
    return idx2word