|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.lexicon.MutableLexKBSynsetImpl
public class MutableLexKBSynsetImpl
Constructor Summary | |
---|---|
MutableLexKBSynsetImpl()
|
Method Summary | |
---|---|
boolean |
addWordSense(LexKBWordSense newWordSense)
add a new word sense at the end of the synset |
boolean |
addWordSense(LexKBWordSense newWordSense,
int offset)
add a new word sense at a given position |
String |
getDefinition()
textual description of the synset |
Object |
getId()
Returns the Id of the synset, each synset has a unique Id for connection to the ontology |
Object |
getPOS()
returns the part-of-speech for this synset |
LexKBWordSense |
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 |
void |
removeSense(LexKBWordSense theSense)
|
void |
removeSenses()
|
void |
setDefinition(String newDefinition)
textual description of the synset |
void |
setPOS(Object newPOS)
sets the part-of-speech for this synset |
boolean |
setWordSenseIndex(LexKBWordSense wordSense,
int newOffset)
change the offset of an existing word sense |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MutableLexKBSynsetImpl()
Method Detail |
---|
public void setPOS(Object newPOS)
MutableLexKBSynset
setPOS
in interface MutableLexKBSynset
public void setDefinition(String newDefinition)
MutableLexKBSynset
setDefinition
in interface MutableLexKBSynset
public boolean addWordSense(LexKBWordSense newWordSense)
MutableLexKBSynset
addWordSense
in interface MutableLexKBSynset
public boolean addWordSense(LexKBWordSense newWordSense, int offset)
MutableLexKBSynset
addWordSense
in interface MutableLexKBSynset
public boolean setWordSenseIndex(LexKBWordSense wordSense, int newOffset)
MutableLexKBSynset
setWordSenseIndex
in interface MutableLexKBSynset
public Object getId()
LexKBSynset
getId
in interface LexKBSynset
public Object getPOS()
getPOS
in interface LexKBSynset
public String getDefinition()
getDefinition
in interface LexKBSynset
public List getWordSenses()
getWordSenses
in interface LexKBSynset
public LexKBWordSense getWordSense(int offset)
getWordSense
in interface LexKBSynset
public String toString()
toString
in class Object
public void removeSenses()
removeSenses
in interface MutableLexKBSynset
public void removeSense(LexKBWordSense theSense)
removeSense
in interface MutableLexKBSynset
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |