GATE
Version 3.1-2270

gate.wordnet
Class SynsetImpl

java.lang.Object
  extended by gate.wordnet.SynsetImpl
All Implemented Interfaces:
Synset

public class SynsetImpl
extends Object
implements Synset


Constructor Summary
SynsetImpl(net.didion.jwnl.data.Synset jwSynset, net.didion.jwnl.dictionary.Dictionary _wnDictionary)
           
 
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. has no hypernym
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynsetImpl

public SynsetImpl(net.didion.jwnl.data.Synset jwSynset,
                  net.didion.jwnl.dictionary.Dictionary _wnDictionary)
           throws GateRuntimeException
Throws:
GateRuntimeException
Method Detail

getPOS

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

Specified by:
getPOS in interface Synset

isUniqueBeginner

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

Specified by:
isUniqueBeginner in interface Synset
Throws:
WordNetException

getGloss

public String getGloss()
textual description of the synset

Specified by:
getGloss in interface Synset

getWordSenses

public List getWordSenses()
WordSenses contained in this synset

Specified by:
getWordSenses in interface Synset

getWordSense

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

Specified by:
getWordSense in interface Synset

getSemanticRelations

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

Specified by:
getSemanticRelations in interface Synset
Throws:
WordNetException

getSemanticRelations

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

Specified by:
getSemanticRelations in interface Synset
Throws:
WordNetException

getOffset

public long getOffset()
offset in index files

Specified by:
getOffset in interface Synset

GATE
Version 3.1-2270