import pickle


def load_word_index_map(file_path):
    """
    Load the mapings of words to indexes in the embeddings matrix.

    Parameters
    ----------
    file_path: string
        The path to the file containing mappings.

    Returns
    -------
    word_map: dict
        The mapping of words to their indices.
    """
    with open(file_path, 'rb') as f:
        word_map = pickle.load(f)

    return word_map