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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -