node-wordnet-magic icon indicating copy to clipboard operation
node-wordnet-magic copied to clipboard

getAntonyms

Open vaskonov opened this issue 8 years ago • 5 comments

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

vaskonov avatar Mar 17 '16 15:03 vaskonov

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.

josephrocca avatar Apr 22 '16 06:04 josephrocca

@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.

mehmetilker avatar May 30 '16 12:05 mehmetilker

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

josephrocca avatar Jun 04 '16 07:06 josephrocca

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

mehmetilker avatar Jun 04 '16 08:06 mehmetilker

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.

josephrocca avatar Jun 05 '16 23:06 josephrocca