public interface FileDictionaryElementFactory extends DictionaryElementFactory
DictionaryElement
s (Synset
s, Exception
s,
and IndexWord
s). Using a factory class rather than individual parsing methods in each class
facilitates using multiple versions of WordNet, or using a proprietary data format.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, createSynset
getDictionary, setDictionary
Exc createExc(POS pos, java.lang.CharSequence line) throws JWNLException
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLExceptionSynset createSynset(POS pos, java.lang.CharSequence line) throws JWNLException
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLExceptionIndexWord createIndexWord(POS pos, java.lang.CharSequence line) throws JWNLException
pos
- - the part of speechline
- - unparsed lineJWNLException
- JWNLException