|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.dictionary.Dictionary
public abstract class Dictionary
Abstract representation of a WordNet dictionary. See the architecture documentation for information on subclassing Dictionary.
| Method Summary | |
|---|---|
abstract void |
close()
Shut down the dictionary |
abstract Exc |
getException(POS pos,
java.lang.String derivation)
Lookup derivation in the exceptions file of part-of-speech
pos and return an Exc object containing the results. |
abstract java.util.Iterator |
getExceptionIterator(POS pos)
Return an Iterator over all the Exceptions in the database. |
abstract IndexWord |
getIndexWord(POS pos,
java.lang.String lemma)
Look up a word in the database. |
abstract java.util.Iterator |
getIndexWordIterator(POS pos)
Return an Iterator over all the IndexWords of part-of-speech pos in the database. |
abstract java.util.Iterator |
getIndexWordIterator(POS pos,
java.lang.String substring)
Return an Iterator over all the IndexWords of part-of-speech pos whose lemmas contain substring as a substring. |
static Dictionary |
getInstance()
|
MorphologicalProcessor |
getMorphologicalProcessor()
|
abstract IndexWord |
getRandomIndexWord(POS pos)
|
abstract java.lang.String |
getSenseKey(long offset,
java.lang.String lemma)
Gets the sense key for this combination. |
abstract Synset |
getSynsetAt(POS pos,
long offset)
Return the Synset at offset offset from the database. |
abstract java.util.Iterator |
getSynsetIterator(POS pos)
Return an Iterator over all the Synsets of part-of-speech pos in the database. |
abstract int |
getUsageCount(long offset,
java.lang.String lemma)
Gets the usage count for this offset/lemma combination. |
IndexWordSet |
lookupAllIndexWords(java.lang.String lemma)
Return a set of IndexWords, with each element in the set
corresponding to a part-of-speech of word. |
IndexWord |
lookupIndexWord(POS pos,
java.lang.String lemma)
Main word lookup procedure. |
static void |
uninstall()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.didion.jwnl.util.factory.Installable |
|---|
install |
| Method Detail |
|---|
public static Dictionary getInstance()
public static void uninstall()
public abstract java.util.Iterator getIndexWordIterator(POS pos)
throws JWNLException
pos - The part-of-speech
IndexWords
JWNLException
public abstract java.util.Iterator getIndexWordIterator(POS pos,
java.lang.String substring)
throws JWNLException
pos - The part-of-speech.
IndexWords.
JWNLException
public abstract IndexWord getIndexWord(POS pos,
java.lang.String lemma)
throws JWNLException
lookupIndexWord(POS, String).
pos - The part-of-speech.lemma - The orthographic representation of the word.
null if
no such entry exists.
JWNLException
public abstract IndexWord getRandomIndexWord(POS pos)
throws JWNLException
JWNLException
public abstract java.util.Iterator getSynsetIterator(POS pos)
throws JWNLException
pos - The part-of-speech.
Synsets.
JWNLException
public abstract Synset getSynsetAt(POS pos,
long offset)
throws JWNLException
Synset at offset offset from the database.
pos - The part-of-speech file to look inoffset - The offset of the synset in the file
JWNLException
public abstract java.util.Iterator getExceptionIterator(POS pos)
throws JWNLException
pos - the part-of-speech
Strings
JWNLException
public abstract Exc getException(POS pos,
java.lang.String derivation)
throws JWNLException
derivation in the exceptions file of part-of-speech
pos and return an Exc object containing the results.
pos - the exception file to look inderivation - the word to look up
JWNLExceptionpublic abstract void close()
public MorphologicalProcessor getMorphologicalProcessor()
public IndexWord lookupIndexWord(POS pos,
java.lang.String lemma)
throws JWNLException
pos - the part-of-speech of the word to look uplemma - the lemma to look up
JWNLException
public IndexWordSet lookupAllIndexWords(java.lang.String lemma)
throws JWNLException
IndexWords, with each element in the set
corresponding to a part-of-speech of word.
lemma - the word for which to lookup senses
JWNLException
public abstract int getUsageCount(long offset,
java.lang.String lemma)
offset - lemma -
public abstract java.lang.String getSenseKey(long offset,
java.lang.String lemma)
offset - lemma -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||