|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Lexicon
In interace for access to the WordNet 2.0 lexical reference.
| Field Summary | |
|---|---|
static int |
POS_ADJ
Indicates a query on adjectives only. |
static int |
POS_ADV
Indicates a query on adverbs only. |
static int |
POS_ALL
Indicates a query on all supported parts of speech: noun, verb, adjective and adverb. |
static int |
POS_NOUN
Indicates a query on nouns only. |
static int |
POS_VERB
Indicates a query on verbs only. |
| Method Summary | |
|---|---|
String |
getPOSLabel(int pos)
Returns a label corresponding to the provided POS int code. |
String |
lookup(String word,
int partOfSpeech)
Look up word and return a richtext (HTML) description from WordNet. |
Set |
synonymsFor(String word,
int partOfSpeech)
Return a Set containing Strings that are considered synonyms for word. |
| Field Detail |
|---|
static final int POS_ALL
static final int POS_NOUN
static final int POS_VERB
static final int POS_ADJ
static final int POS_ADV
| Method Detail |
|---|
String lookup(String word,
int partOfSpeech)
word - the word to look uppartOfSpeech - a value that determines which part(s) of speech to query
Set synonymsFor(String word,
int partOfSpeech)
word - the word to look uppartOfSpeech - a value that determines which part(s) of speech to queryString getPOSLabel(int pos)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||