|
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 MutableLexKBSynsetpublic void setDefinition(String newDefinition)
MutableLexKBSynset
setDefinition in interface MutableLexKBSynsetpublic 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 MutableLexKBSynsetpublic Object getId()
LexKBSynset
getId in interface LexKBSynsetpublic Object getPOS()
getPOS in interface LexKBSynsetpublic String getDefinition()
getDefinition in interface LexKBSynsetpublic List getWordSenses()
getWordSenses in interface LexKBSynsetpublic LexKBWordSense getWordSense(int offset)
getWordSense in interface LexKBSynsetpublic String toString()
toString in class Objectpublic void removeSenses()
removeSenses in interface MutableLexKBSynsetpublic 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 | |||||||||