|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.gn.WordSense
Class representing a word sense.
Constructor Summary | |
WordSense()
Create a new instance of WordSense. |
Method Summary | |
boolean |
addAntonym(WordSense antonym)
Add one antonym to the antonym's list of this WordSense. |
int |
compareTo(java.lang.Object otherWordSense)
Return a number representing the difference between this and an other word sense. |
boolean |
equals(java.lang.Object otherWordSense)
Return wether this WordSense is the same as the other one. |
java.util.ArrayList |
getAntonyms()
Get all antonyms of this WordSense. |
boolean |
getArtificial()
Indicates wether this WordSense is an artificial concept, not corresponding to natural word. |
java.lang.String |
getGrapheme()
Get graphemic represantation of this WordSense. |
WordSense |
getParticipleOf()
Get the WordSense of the verb that this WordSense is participle of. |
char |
getPartOfSpeech()
Get the part of speech of this WordSense. |
WordSense |
getPertonym()
Get the WordSense that this WordSense is derived from. |
boolean |
getProperName()
Indicates wether this WordSense is a proper name. |
int |
getSense()
Get sense of this WordSense. |
boolean |
getStyle()
Indicates wether this WordSense stands out stylistically. |
Synset |
getSynset()
Get corresponding Synset. |
void |
setAntonyms(java.util.ArrayList antonyms)
Set all antonyms of this WordSense. |
void |
setArtificial(boolean artificial)
Set wether this WordSense is an artificial concept. |
void |
setGrapheme(java.lang.String grapheme)
Set graphemic represantation of this WordSense. |
void |
setParticipleOf(WordSense participleOf)
Set the WordSense of the verb that this WordSense is participle of. |
void |
setPartOfSpeech(char pos)
Set the part of speech of this WordSense. |
void |
setPertonym(WordSense pertonym)
Set the WordSense that this WordSense is derived from. |
void |
setProperName(boolean properName)
Set wether this WordSense is a proper name. |
void |
setSense(int sense)
Set sense of this WordSense. |
void |
setStyle(boolean style)
Set wether this WordSense stands out stylistically. |
void |
setSynset(Synset synset)
Set Synset this Wordsense depends on. |
java.lang.String |
toString()
Return a string representation of this WordSense instance. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WordSense()
Method Detail |
public java.lang.String getGrapheme()
public void setGrapheme(java.lang.String grapheme)
public int getSense()
public void setSense(int sense)
public boolean getArtificial()
public void setArtificial(boolean artificial)
public boolean getProperName()
public void setProperName(boolean properName)
public boolean getStyle()
public void setStyle(boolean style)
public Synset getSynset()
public void setSynset(Synset synset)
public java.util.ArrayList getAntonyms()
public void setAntonyms(java.util.ArrayList antonyms)
antonyms
- The new antonyms of this WordSense.
It is an ArrayList of one or more WordSenses.public boolean addAntonym(WordSense antonym)
antonym
- A new antonym of this WordSense.public WordSense getPertonym()
public void setPertonym(WordSense pertonym)
public WordSense getParticipleOf()
public void setParticipleOf(WordSense participleOf)
public char getPartOfSpeech()
public void setPartOfSpeech(char pos)
public boolean equals(java.lang.Object otherWordSense)
public java.lang.String toString()
public int compareTo(java.lang.Object otherWordSense)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |