wn
wn copied to clipboard
Synset.relations() for some lexicons uses synset id as relation name
Compare the difference in the relation name for the oewn
versus the omw-fr
lexicons:
>>> import wn
>>> wn.synsets('dog', pos='n', lexicon='oewn')[0].relations('hypernym')
{'hypernym': [Synset('oewn-02085998-n'), Synset('oewn-01320032-n')]}
>>> wn.synsets('chien', pos='n', lexicon='omw-fr')[0].relations('hypernym')
{'omw-fr-10753546-n': [Synset('omw-fr-10753546-n')]}
For OEWN, the relation name is hypernym
while for omw-fr
it is omw-fr-10753546-n
. I suspect this is the case for relations obtained from expand lexicons.