I am very new to NLP and I might be doing something wrong.
I would like to work with a hungarian text where I can get the synset/hyponym/hypernym of some selected words. I am working in python.
As Open Multilingual Wordnet does not have hungarian wordnet dictionary I have downloaded one from this github site: https://github.com/mmihaltz/huwn
As it is an xml file I have converted it to .tab with a converter available in other language folders.
So at this stage I created the '\nltk_data\corpora\omw\hun' library and placed my new wn-data-hun.tab inside this directory.
But unfortunately it is not working
After importing nltk and wordnet the wn.langs()
command shows the 'hun' also as available language.
However trying: wn.lemmas('cane', lang='hun')
command is showing an empty list. Trying with other languages (built in languages in open multilanguage wordnet), it works.
Could you pleaes help me or point me in the right direction in order to make it work?
Thank you in advance!
from Getting synsets of custom hungarian wordnet dictionary with nltk
No comments:
Post a Comment