gate.wordnet
Class SynsetImpl

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

public class SynsetImpl
extends Object
implements Synset


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

wordSenses

private ArrayList wordSenses

semRelations

private ArrayList semRelations

gloss

private String gloss

synsetPOS

private int synsetPOS

wnDictionary

net.didion.jwnl.dictionary.Dictionary wnDictionary

synsetOffset

private long synsetOffset
Constructor Detail

SynsetImpl

public SynsetImpl(net.didion.jwnl.data.Synset jwSynset,
                  net.didion.jwnl.dictionary.Dictionary _wnDictionary)
           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

_loadSemanticRelations

private void _loadSemanticRelations()
                             throws WordNetException
Throws:
WordNetException

getOffset

public long getOffset()
offset in index files

Specified by:
getOffset in interface Synset