def load_reverse_dict(dict_path):
    """
    Load the word dictionary from the given file.
    Each line of the given file is a word, which can include multiple columns
    seperated by tab.

    This function takes line number of a line as the key (index of the word in
    the dictionary) and the first column (columns in a line are seperated by
    tab) as the value.
    """
    return dict((idx, line.strip().split("\t")[0])
                for idx, line in enumerate(open(dict_path, "r").readlines()))