node-wordnet-magic
node-wordnet-magic copied to clipboard
getAntonyms
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
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.
@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.
Sorry, I didn't find a solution to this :(
@josephrocca here is what I found. But I do not know if will be enough... https://github.com/Planeshifter/node-wordnet-magic/issues/13
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.