java - WordNet does not have a definition for the word 'for' -
i'm using wordnet 3
validate english words, not have definition word for
.
code snippet:
system.setproperty("wordnet.database.dir", modelfolder); // path wordnet nounsynset nounsynset; nounsynset[] hyponyms; wordnetdatabase database = wordnetdatabase.getfileinstance(); synset[] synsets = database.getsynsets(word); // no results boolean isfound = synsets.length > 0;
wordnet semantics, i.e. meaning of words, doesn't contain words have no meaning grammatical function. these called function words.
source: http://www.d.umn.edu/~tpederse/group01/wordnet/wordnet-stoplist.html
Comments
Post a Comment