public class MapBackedDictionary extends MapDictionary
Dictionary
backed by Map
s. Warning: this has huge memory requirements.
Make sure to start JVM with a large enough free memory pool to accommodate this.Dictionary.Version
rand, tableMap
CHECK_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, removeSynset
addElement, 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, setRestoreDictionary
public MapBackedDictionary(org.w3c.dom.Document doc) throws JWNLException
JWNLException
public boolean delete() throws JWNLException
Dictionary
delete
in class Dictionary
JWNLException
- JWNLExceptionpublic void close() throws JWNLException
Dictionary
close
in class MapDictionary
JWNLException
- JWNLExceptionpublic void edit() throws JWNLException
Dictionary
edit
in class MapDictionary
JWNLException
- JWNLExceptionpublic void save() throws JWNLException
Dictionary
save
in class Dictionary
JWNLException
- JWNLException