GATE
Version 3.1-2270

gate.wordnet
Class WordSenseImpl

java.lang.Object
  extended by gate.wordnet.WordSenseImpl
All Implemented Interfaces:
WordSense
Direct Known Subclasses:
AdjectiveImpl, VerbImpl

public class WordSenseImpl
extends Object
implements WordSense


Constructor Summary
WordSenseImpl(Word _word, Synset _synset, int _senseNumber, int _orderInSynset, boolean _isSemcor, net.didion.jwnl.dictionary.Dictionary _wnDict)
           
 
Method Summary
 List getLexicalRelations()
          return the Lex relations this sense participates in
 List getLexicalRelations(int type)
          return the Lex relations (of the specified type) this sense participates in
 int getOrderInSynset()
          order of this sense relative to the synset- i.e. most important senses of the same synset come first
 int getPOS()
          part-of-speech for this sense (inherited from the containing synset)
 int getSenseNumber()
          order of this sense relative to the word - i.e. most important senses of the same word come first
 Synset getSynset()
          synset of this sense
 Word getWord()
          returns the Word of this WordSense
 boolean isSemcor()
          appears in SEMCOR?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordSenseImpl

public WordSenseImpl(Word _word,
                     Synset _synset,
                     int _senseNumber,
                     int _orderInSynset,
                     boolean _isSemcor,
                     net.didion.jwnl.dictionary.Dictionary _wnDict)
Method Detail

getWord

public Word getWord()
returns the Word of this WordSense

Specified by:
getWord in interface WordSense

getPOS

public int getPOS()
part-of-speech for this sense (inherited from the containing synset)

Specified by:
getPOS in interface WordSense

getSynset

public Synset getSynset()
synset of this sense

Specified by:
getSynset in interface WordSense

getSenseNumber

public int getSenseNumber()
order of this sense relative to the word - i.e. most important senses of the same word come first

Specified by:
getSenseNumber in interface WordSense

getOrderInSynset

public int getOrderInSynset()
order of this sense relative to the synset- i.e. most important senses of the same synset come first

Specified by:
getOrderInSynset in interface WordSense

isSemcor

public boolean isSemcor()
appears in SEMCOR?

Specified by:
isSemcor in interface WordSense

getLexicalRelations

public List getLexicalRelations()
                         throws WordNetException
return the Lex relations this sense participates in

Specified by:
getLexicalRelations in interface WordSense
Throws:
WordNetException

getLexicalRelations

public List getLexicalRelations(int type)
                         throws WordNetException
return the Lex relations (of the specified type) this sense participates in

Specified by:
getLexicalRelations in interface WordSense
Throws:
WordNetException

GATE
Version 3.1-2270