public abstract class AbstractPrincetonFileDictionaryElementFactory extends AbstractDictionaryElementFactory implements FileDictionaryElementFactory
FileDictionaryElementFactory
that parses lines from the dictionary files distributed by the
WordNet team at Princeton's Cognitive Science department.CACHE_STRINGS_KEY, cacheStrings, dictionary, maxOffset, stringCache
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrincetonFileDictionaryElementFactory(Dictionary dictionary,
java.util.Map<java.lang.String,Param> params) |
Modifier and Type | Method and Description |
---|---|
Exc |
createExc(POS pos,
java.lang.CharSequence line)
Creates an Exc from a line in an exception file.
|
IndexWord |
createIndexWord(POS pos,
java.lang.CharSequence line)
Creates an IndexWord from a line in an index file.
|
Synset |
createSynset(POS pos,
java.lang.CharSequence line)
Creates a synset from a line in a data file.
|
createException, createIndexWord, createNewOffset, createSynset, createWord, getDictionary, initVerbFrameFlags, setDictionary, startCaching, stopCaching
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createException, createIndexWord, createSynset
getDictionary, setDictionary
protected AbstractPrincetonFileDictionaryElementFactory(Dictionary dictionary, java.util.Map<java.lang.String,Param> params)
public IndexWord createIndexWord(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactory
createIndexWord
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLExceptionpublic Synset createSynset(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactory
createSynset
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLExceptionpublic Exc createExc(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactory
createExc
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLException