public interface DictionaryElementFactory extends Owned
DictionaryElements (Synsets, Exceptions,
and IndexWords). 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, setDictionaryExc 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