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, stopCachingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateException, createIndexWord, createSynsetgetDictionary, setDictionaryprotected AbstractPrincetonFileDictionaryElementFactory(Dictionary dictionary, java.util.Map<java.lang.String,Param> params)
public IndexWord createIndexWord(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactorycreateIndexWord in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed lineJWNLException - JWNLExceptionpublic Synset createSynset(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactorycreateSynset in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed lineJWNLException - JWNLExceptionpublic Exc createExc(POS pos, java.lang.CharSequence line) throws JWNLException
FileDictionaryElementFactorycreateExc in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed lineJWNLException - JWNLException