gate.wordnet
Interface Synset

All Known Implementing Classes:
SynsetImpl

public interface Synset

Represents WordNet synset.


Method Summary
 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.
 

Method Detail

getPOS

public int getPOS()
returns the part-of-speech for this synset, see WordNet::POS_XXX constants


isUniqueBeginner

public boolean isUniqueBeginner()
                         throws WordNetException
is this synset a UB - i.e. has no hypernym

WordNetException

getGloss

public String getGloss()
textual description of the synset


getOffset

public long getOffset()
offset in index files


getWordSenses

public List getWordSenses()
WordSenses contained in this synset


getWordSense

public WordSense getWordSense(int offset)
get specific WordSense according to its order in the synset - most important senses come first


getSemanticRelations

public List getSemanticRelations()
                          throws WordNetException
get the SemanticRelation-s of this synset

WordNetException

getSemanticRelations

public List getSemanticRelations(int type)
                          throws WordNetException
get the SemanticRelation-s of specific type (HYPERNYm) for this synset

WordNetException