public class JWNLDictionary extends Object implements Dictionary
| Constructor and Description |
|---|
JWNLDictionary(String searchDirectory) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLemmas(String word,
String tag)
Returns the lemmas of the specified word with the specified part-of-speech.
|
int |
getNumSenses(String lemma,
String pos)
Returns the number of senses in the dictionary for the specified lemma.
|
String[] |
getParentSenseKeys(String lemma,
String pos,
int sense)
Returns an array of keys for each parent of the specified sense number of the specified lemma with the specified part-of-speech.
|
String |
getSenseKey(String lemma,
String pos,
int sense)
Returns a key indicating the specified sense number of the specified
lemma with the specified part-of-speech.
|
static void |
main(String[] args) |
public JWNLDictionary(String searchDirectory) throws IOException, net.didion.jwnl.JWNLException
IOExceptionnet.didion.jwnl.JWNLExceptionpublic String[] getLemmas(String word, String tag)
DictionarygetLemmas in interface Dictionaryword - The word whose lemmas are desired.tag - The part-of-speech of the specified word.public String getSenseKey(String lemma, String pos, int sense)
DictionarygetSenseKey in interface Dictionarylemma - The lemmas for which the key is desired.pos - The pos for which the key is desired.sense - The sense number for which the key is desired.public int getNumSenses(String lemma, String pos)
DictionarygetNumSenses in interface Dictionarylemma - A lemmatized form of the word to look up.pos - The part-of-speech for the lemma.public String[] getParentSenseKeys(String lemma, String pos, int sense)
DictionarygetParentSenseKeys in interface Dictionarylemma - A lemmatized form of the word to look up.pos - The part-of-speech for the lemma.sense - The sense number for which the parent keys are desired.public static void main(String[] args) throws IOException, net.didion.jwnl.JWNLException
IOExceptionnet.didion.jwnl.JWNLExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.