public class DatabaseBackedDictionary extends AbstractCachingDictionary
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_MANAGER |
static String |
DICTIONARY_ELEMENT_FACTORY |
static String |
MORPH
MorphologicalProcessor class install parameter. |
| Constructor and Description |
|---|
DatabaseBackedDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down the dictionary
|
Exc |
getException(POS pos,
String derivation)
Lookup
derivation in the exceptions file of part-of-speech
pos and return an Exc object containing the results. |
Iterator |
getExceptionIterator(POS pos)
Return an Iterator over all the Exceptions in the database.
|
IndexWord |
getIndexWord(POS pos,
String lemma)
Look up a word in the database.
|
Iterator |
getIndexWordIterator(POS pos)
Return an Iterator over all the IndexWords of part-of-speech
pos in the database.
|
Iterator |
getIndexWordIterator(POS pos,
String substring)
Return an Iterator over all the IndexWords of part-of-speech pos
whose lemmas contain substring as a substring.
|
IndexWord |
getRandomIndexWord(POS pos) |
String |
getSenseKey(long offset,
String lemma)
Not implemented in DB yet.
|
Synset |
getSynsetAt(POS pos,
long offset)
Return the
Synset at offset offset from the database. |
Iterator |
getSynsetIterator(POS pos)
Return an Iterator over all the Synsets of part-of-speech pos
in the database.
|
int |
getUsageCount(long offset,
String lemma)
Not implemented in DB yet.
|
void |
install(Map params) |
cacheException, cacheIndexWord, cacheSynset, clearCache, clearCache, getCacheCapacity, getCachedException, getCachedIndexWord, getCachedSynset, getCacheSizes, isCachingEnabled, setCacheCapacity, setCacheCapacity, setCachingEnabledgetInstance, getMorphologicalProcessor, lookupAllIndexWords, lookupIndexWord, prepareQueryString, setDictionary, uninstallpublic static final String MORPH
MorphologicalProcessor class install parameter. The value should be the
class of MorphologicalProcessor to use.public static final String DICTIONARY_ELEMENT_FACTORY
public static final String DATABASE_MANAGER
public void install(Map params) throws JWNLException
JWNLExceptionpublic IndexWord getIndexWord(POS pos, String lemma) throws JWNLException
DictionaryDictionary.lookupIndexWord(POS, String).getIndexWord in class Dictionarypos - The part-of-speech.lemma - The orthographic representation of the word.null if
no such entry exists.JWNLExceptionpublic Iterator getIndexWordIterator(POS pos) throws JWNLException
DictionarygetIndexWordIterator in class Dictionarypos - The part-of-speechIndexWordsJWNLExceptionpublic Iterator getIndexWordIterator(POS pos, String substring) throws JWNLException
DictionarygetIndexWordIterator in class Dictionarypos - The part-of-speech.IndexWords.JWNLExceptionpublic IndexWord getRandomIndexWord(POS pos) throws JWNLException
getRandomIndexWord in class DictionaryJWNLExceptionpublic Synset getSynsetAt(POS pos, long offset) throws JWNLException
DictionarySynset at offset offset from the database.getSynsetAt in class Dictionarypos - The part-of-speech file to look inoffset - The offset of the synset in the fileJWNLExceptionpublic Iterator getSynsetIterator(POS pos) throws JWNLException
DictionarygetSynsetIterator in class Dictionarypos - The part-of-speech.Synsets.JWNLExceptionpublic Exc getException(POS pos, String derivation) throws JWNLException
Dictionaryderivation in the exceptions file of part-of-speech
pos and return an Exc object containing the results.getException in class Dictionarypos - the exception file to look inderivation - the word to look upJWNLExceptionpublic Iterator getExceptionIterator(POS pos) throws JWNLException
DictionarygetExceptionIterator in class Dictionarypos - the part-of-speechStringsJWNLExceptionpublic void close()
Dictionaryclose in class Dictionarypublic int getUsageCount(long offset,
String lemma)
Copyright © 2023. All rights reserved.