|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.dictionary.Dictionary
Abstract representation of a WordNet dictionary. See the architecture documentation for information on subclassing Dictionary.
| Constructor Summary | |
protected |
Dictionary()
Create a Dictionary that does not do morphological processing. |
protected |
Dictionary(MorphologicalProcessor morph)
Create a Dictionary using the specified MorphologicalProcessor. |
| 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 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. |
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. |
protected static java.lang.String |
prepareQueryString(java.lang.String lemma)
Prepares the lemma for being used in a lookup operation. |
protected static void |
setDictionary(Dictionary dictionary)
|
static void |
uninstall()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.didion.jwnl.util.factory.Installable |
install |
| Constructor Detail |
protected Dictionary()
protected Dictionary(MorphologicalProcessor morph)
| Method Detail |
public static Dictionary getInstance()
protected static void setDictionary(Dictionary dictionary)
public static void uninstall()
protected static java.lang.String prepareQueryString(java.lang.String lemma)
lemma - the lemma to be prepared
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||