|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.lexicon.MutableLexKBSynsetImpl
Field Summary | |
private String |
definition
|
private Long |
id
|
private static long |
nextID
|
private Object |
POS
|
private List |
senses
|
(package private) static long |
serialVersionUID
|
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 |
Field Detail |
private Object POS
private String definition
private Long id
private static long nextID
private List senses
static final long serialVersionUID
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()
public void removeSenses()
removeSenses
in interface MutableLexKBSynset
public void removeSense(LexKBWordSense theSense)
removeSense
in interface MutableLexKBSynset
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |