

def _load_universal_map(fileid):
    contents = load(join(_UNIVERSAL_DATA, (fileid + '.map')), format='text')
    _MAPPINGS[fileid]['universal'].default_factory = (lambda : 'X')
    for line in contents.splitlines():
        line = line.strip()
        if (line == ''):
            continue
        (fine, coarse) = line.split('\t')
        assert (coarse in _UNIVERSAL_TAGS), 'Unexpected coarse tag: {}'.format(coarse)
        assert (fine not in _MAPPINGS[fileid]['universal']), 'Multiple entries for original tag: {}'.format(fine)
        _MAPPINGS[fileid]['universal'][fine] = coarse

dataset/ETHPy150Open nltk/nltk/nltk/tag/mapping.py _load_universal_map/original