Planeshifter / node-wordnet-magic

tools for working with Princeton's lexical database WordNet
MIT License
74 stars 12 forks source link

getAntonyms #10

Open vaskonov opened 8 years ago

vaskonov commented 8 years ago

I try to run the following code

var high = new wn.Word("accept");
high.getAntonyms(function(err, antonymArray){
    console.log(antonymArray);
});

It returns an empty list, however there are antonyms for 'accept' in WordNet

josephrocca commented 8 years ago

I can replicate this issue. I tried a few other random words and getAntonyms also returns an empty array for the word "increase" and (predictably) "decrease".

Any ideas @Planeshifter ? This has the potential to be a useful library but it's just a few critical bugs like this that are holding it back.

mehmetilker commented 8 years ago

@vaskonov , @josephrocca Did you find any solution about it ? I guess it works only if the word is adjective... I guess another problem is that antonyms should be per synset / definition, not by word itself.

josephrocca commented 8 years ago

Sorry, I didn't find a solution to this :(

mehmetilker commented 8 years ago

@josephrocca here is what I found. But I do not know if will be enough... https://github.com/Planeshifter/node-wordnet-magic/issues/13

josephrocca commented 8 years ago

Ah, good investigating :+1:, I ended up just writing my own SQL statements - the wordnet SQL database isn't too difficult to navigate. Would be much easier if this was working though.