def semcor_to_offset(sensekey):
    synset = wn.lemma_from_key(sensekey).synset
    offset = '%08d-%s' % (synset.offset, synset.pos)
    return offset
Converts SemCor sensekey IDs to synset offset.
dataset/ETHPy150Open alvations/pywsd/pywsd/utils.py/semcor_to_offset