public interface DictionaryElementFactory extends Owned
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 |
createException(POS pos,
java.lang.String lemma,
java.util.List<java.lang.String> exceptions)
Creates an exception in the dictionary.
|
IndexWord |
createIndexWord(POS pos,
java.lang.String lemma,
Synset synset)
Creates index word.
|
Synset |
createSynset(POS pos)
Creates synset of the specified part of speech.
|
getDictionary, setDictionary
Exc createException(POS pos, java.lang.String lemma, java.util.List<java.lang.String> exceptions) throws JWNLException
pos
- exception part of speechlemma
- exception lemmaexceptions
- list of base formsJWNLException
- JWNLExceptionSynset createSynset(POS pos) throws JWNLException
pos
- part of speechJWNLException
- JWNLExceptionIndexWord createIndexWord(POS pos, java.lang.String lemma, Synset synset) throws JWNLException
pos
- part of speechlemma
- lemmasynset
- synsetJWNLException
- JWNLException