|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.wordnet.SynsetImpl
Field Summary | |
private String |
gloss
|
private ArrayList |
semRelations
|
private long |
synsetOffset
|
private int |
synsetPOS
|
(package private) net.didion.jwnl.dictionary.Dictionary |
wnDictionary
|
private ArrayList |
wordSenses
|
Constructor Summary | |
SynsetImpl(net.didion.jwnl.data.Synset jwSynset,
net.didion.jwnl.dictionary.Dictionary _wnDictionary)
|
Method Summary | |
private void |
_loadSemanticRelations()
|
String |
getGloss()
textual description of the synset |
long |
getOffset()
offset in index files |
int |
getPOS()
returns the part-of-speech for this synset, see WordNet::POS_XXX constants |
List |
getSemanticRelations()
get the SemanticRelation-s of this synset |
List |
getSemanticRelations(int type)
get the SemanticRelation-s of specific type (HYPERNYm) for this synset |
WordSense |
getWordSense(int offset)
get specific WordSense according to its order in the synset - most important senses come first |
List |
getWordSenses()
WordSenses contained in this synset |
boolean |
isUniqueBeginner()
is this synset a UB - i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ArrayList wordSenses
private ArrayList semRelations
private String gloss
private int synsetPOS
net.didion.jwnl.dictionary.Dictionary wnDictionary
private long synsetOffset
Constructor Detail |
public SynsetImpl(net.didion.jwnl.data.Synset jwSynset, net.didion.jwnl.dictionary.Dictionary _wnDictionary) throws GateRuntimeException
Method Detail |
public int getPOS()
getPOS
in interface Synset
public boolean isUniqueBeginner() throws WordNetException
isUniqueBeginner
in interface Synset
WordNetException
public String getGloss()
getGloss
in interface Synset
public List getWordSenses()
getWordSenses
in interface Synset
public WordSense getWordSense(int offset)
getWordSense
in interface Synset
public List getSemanticRelations() throws WordNetException
getSemanticRelations
in interface Synset
WordNetException
public List getSemanticRelations(int type) throws WordNetException
getSemanticRelations
in interface Synset
WordNetException
private void _loadSemanticRelations() throws WordNetException
WordNetException
public long getOffset()
getOffset
in interface Synset
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |