(path_to_map)
return dict(return_map)
Load the map of entity frequencies from a file.

    :param path_to_map: location of the map file
    :return: entity map as a dictionary
    >>> load_entity_freq_map("../resources/wikidata_entity_freqs.map")['Q76']
    7070
Load the map of entity frequencies from a file.
Load the map of entity frequencies from a file .
def load_entity_freq_map(path_to_map):
    """
    Load the map of entity frequencies from a file.

    :param path_to_map: location of the map file
    :return: entity map as a dictionary
    >>> load_entity_freq_map("../resources/wikidata_entity_freqs.map")['Q76']
    7070
    """
    with open(path_to_map) as f:
        return_map = [tuple(l.strip().split("\t")) for l in f.readlines()]
        return_map = [(k, int(v)) for k, v in return_map]
    return dict(return_map)
def load_entity_freq_map ( path_to_map ) : with open ( path_to_map ) as f : return_map = [ tuple ( l . strip ( ) . split ( "\t" ) ) for l in f . readlines ( ) ] return_map = [ ( k , int ( v ) ) for k , v in return_map ] return dict ( return_map )