public class Dictionary extends CachingDictionary
IDictionary implementation that mounts files on disk and has
caching. A file URL to the directory containing the Wordnet dictionary files
must be provided. This implementation has adjustable caching.CachingDictionary.ItemCacheICachingDictionary.IItemCacheIHasLifecycle.LifecycleState, IHasLifecycle.ObjectClosedException, IHasLifecycle.ObjectOpenException| Constructor and Description |
|---|
Dictionary(File wordnetDir)
Constructs a new dictionary that uses the Wordnet files located in a
directory pointed to by the specified file
|
Dictionary(URL wordnetDir)
Constructs a new dictionary that uses the Wordnet files located in a
directory pointed to by the specified url
|
cacheSynset, checkOpen, close, createCache, getBackingDictionary, getCache, getCharset, getExceptionEntry, getExceptionEntry, getExceptionEntryIterator, getIndexWord, getIndexWord, getIndexWordIterator, getSenseEntry, getSenseEntryIterator, getSynset, getSynsetIterator, getVersion, getWord, getWord, isOpen, open, setCharsetpublic Dictionary(URL wordnetDir)
wordnetDir - a url pointing to a directory containing the wordnet data
files on the filesystemNullPointerException - if the specified url is nullpublic Dictionary(File wordnetDir)
wordnetDir - a file pointing to a directory containing the wordnet data files on the filesystemNullPointerException - if the specified file is nullCopyright © 2018. All rights reserved.