public class MapBackedDictionary extends MapDictionary
Dictionary backed by Maps. Warning: this has huge memory requirements.
Make sure to start JVM with a large enough free memory pool to accommodate this.Dictionary.Versionrand, tableMapCHECK_LEX_IDS_KEY, DEFAULT_RESOURCE_CONFIG_PATH, DICTIONARY_ELEMENT_FACTORY, EDIT_CHECK_ALIEN_POINTERS, EDIT_MANAGE_SYMMETRIC_POINTERS, elementFactory, MORPHOLOGICAL_PROCESSOR, params| Constructor and Description |
|---|
MapBackedDictionary(org.w3c.dom.Document doc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the dictionary, freeing resources.
|
boolean |
delete()
Deletes dictionary files.
|
void |
edit()
Puts the dictionary into edit mode.
|
void |
save()
Saves the dictionary.
|
addException, addIndexWord, addSynset, getException, getExceptionIterator, getIndexWord, getIndexWordIterator, getIndexWordIterator, getRandomIndexWord, getSynsetAt, getSynsetIterator, getTable, removeException, removeIndexWord, removeSynsetaddElement, checkEditable, createException, createIndexWord, createSynset, getCheckAlienPointers, getDatabaseBackedInstance, getDefaultResourceInstance, getFileBackedInstance, getFrames, getFrames, getInstance, getInstance, getManageSymmetricPointers, getMapBackedInstance, getMessages, getMorphologicalProcessor, getRandom, getResourceInstance, getRestoreDictionary, getVerbFrameIndices, getVersion, getWordBySenseKey, isEditable, lookupAllIndexWords, lookupIndexWord, prepareQueryString, removeElement, resolveAllPointers, resolvePointers, setRandom, setRestoreDictionarypublic MapBackedDictionary(org.w3c.dom.Document doc)
throws JWNLException
JWNLExceptionpublic boolean delete()
throws JWNLException
Dictionarydelete in class DictionaryJWNLException - JWNLExceptionpublic void close()
throws JWNLException
Dictionaryclose in class MapDictionaryJWNLException - JWNLExceptionpublic void edit()
throws JWNLException
Dictionaryedit in class MapDictionaryJWNLException - JWNLExceptionpublic void save()
throws JWNLException
Dictionarysave in class DictionaryJWNLException - JWNLException