G'day,
I think it is some issue with encoding in the python interpreter.
If we set:
>>> ba = wn.synsets('bank')[0].lemma_names('arb') [0]
>>> ba
'ضِفّة'
>>> wn.synsets(ba, lang='arb')[0].hypernyms()[0].lemma_names(lang='arb')
['اِنْحِدار', 'مُنْحدر', 'ميْل']
>>> wn.synsets('ضِفّة', lang='arb')[0].hypernyms()[0].lemma_names(lang='arb')
['اِنْحِدار', 'مُنْحدر', 'ميْل']
But if I try and cut and paste I get:
>>> wn.synsets('ضِفَّة', lang='arb')
[]
Even though it looks the same, it is not (the second character has an
extra line on top --- sorry I don't know the right name for it). So
somewhere the cutting and pasting is causing a problem. I think this
is not an nltk issue.