edu.mit.jwi
Class Dictionary
java.lang.Object
edu.mit.jwi.CachingDictionary
edu.mit.jwi.Dictionary
- All Implemented Interfaces:
- IClosable, IHasLifecycle, ICachingDictionary, IDictionary, IHasVersion
public class Dictionary
- extends CachingDictionary
Basic 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.
- Since:
- JWI 1.0
- Version:
- 2.2.2
- Author:
- Mark A. Finlayson
|
Constructor Summary |
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 |
| Methods inherited from class edu.mit.jwi.CachingDictionary |
cacheSynset, checkOpen, close, createCache, getBackingDictionary, getCache, getExceptionEntry, getExceptionEntry, getExceptionEntryIterator, getIndexWord, getIndexWord, getIndexWordIterator, getSenseEntry, getSenseEntryIterator, getSynset, getSynsetIterator, getVersion, getWord, getWord, isOpen, open |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dictionary
public Dictionary(URL wordnetDir)
- Constructs a new dictionary that uses the Wordnet files located in a
directory pointed to by the specified url
- Parameters:
wordnetDir - a url pointing to a directory containing the wordnet data
files on the filesystem
- Throws:
NullPointerException - if the specified url is null- Since:
- JWI 1.0
Dictionary
public Dictionary(File wordnetDir)
- Constructs a new dictionary that uses the Wordnet files located in a
directory pointed to by the specified file
- Parameters:
wordnetDir - a file pointing to a directory containing the wordnet data files on the filesystem
- Throws:
NullPointerException - if the specified file is null- Since:
- JWI 1.0
Copyright © 2011. All Rights Reserved.