public class Exc extends BaseDictionaryElement
Exception lists are alphabetized lists of inflected forms of words and their base forms. The first field of each line is an inflected form, followed by a space separated list of one or more base forms of the word. There is one exception list file for each syntactic category. From wndb.5WN in WordNet base documentation.
dictionary
Constructor and Description |
---|
Exc(Dictionary dictionary,
POS pos,
java.lang.String lemma,
java.util.List<java.lang.String> exceptions)
Creates a new exception entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getExceptions()
Returns list of exceptions (base forms), e.g.
|
java.lang.Object |
getKey()
Returns a key that can be used to index this element.
|
java.lang.String |
getLemma()
Returns the lemma (derivation) of the exception word, e.g.
|
POS |
getPOS()
Returns element's part of speech.
|
DictionaryElementType |
getType()
Returns the element's type.
|
int |
hashCode() |
java.lang.String |
toString() |
getDictionary, setDictionary
public Exc(Dictionary dictionary, POS pos, java.lang.String lemma, java.util.List<java.lang.String> exceptions) throws JWNLException
dictionary
- the owner of the exceptionpos
- the exception part of speechlemma
- the word's lemma formexceptions
- the given exceptionsJWNLException
- JWNLExceptionpublic DictionaryElementType getType()
DictionaryElement
public POS getPOS()
DictionaryElement
public java.lang.Object getKey()
DictionaryElement
public java.lang.String getLemma()
public java.util.List<java.lang.String> getExceptions()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object