Open MartenPostma opened 8 years ago
In addition to that, we compiled a tsv synonyms file at: https://github.com/MartenPostma/OpenDutchWordnet/blob/master/synonyms.tsv
Thanks! But which specific script do I need to run to call "instance.les...."? I tried to call it using the les.py script among others (in the powershell) but this script does not seem to do the job. Which one should I use?
You first have to load the module as indicated in the README:
from OpenDutchWordnet import Wn_grid_parser
print(Wn_grid_parser.LICENSE)
print(Wn_grid_parser.odwn)
instance = Wn_grid_parser(Wn_grid_parser.odwn)
then you can use this method. Although, it's only tested on Mac Os X and Linux. So no garanties there. That is why I create the synonym file to be on the safe side.
Thanks Marten, I tried and tried, but did not succeed in getting the module running (note, I guess it is wn instead of Wn). However the synonym file does the trick.
In order to get all synonyms from a lemma, simply call instance.les_lemma_synonyms(LEMMA). for example: