Search code examples
pythonnltkarabicwordnet

AttributeError: 'WordNetCorpusReader' object has no attribute 'get_synsets_from_word'


when using arabic wordnet in python , I follow this post Import Arabic Wordnet in python

and when run this command wn.get_synsets_from_word(u"جَمِيل") raise AttributeError: 'WordNetCorpusReader' object has no attribute 'get_synsets_from_word' how solve this error and use arabic wordnet correctly?


Solution

  • This Arabic Wordnet has no relation to Wordnet but the name. Wordnet has not that function wn.get_synsets_from_word. You should download Arabic Wordnet from here.