def read_id_to_word_dictionary(word_dictionary_file_path):
    """
    Read id to word dictionary takes a file input and assumes each line is of the following format: "word:id".
    It then converts this into a dictionary where key is the id and value is the word.
    :param word_dictionary_file_path: File path of word_dictionary file
    :return: Dictionary of id and associated words
    """
    word_dict = dict()
    with open(word_dictionary_file_path) as f:
        for line in f:
            words = line.strip().split(",")
            word_dict[int(words[1])] = words[0]

    return word_dict