|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.gn.Synset
Class representing a synset.
Constructor Summary | |
Synset()
Create a new instance of Synset. |
Method Summary | |
boolean |
addAssociation(Synset association)
Add a association to the list of associations of this Synset. |
boolean |
addCausation(Synset causation)
Add a causation to the list of causations of this Synset. |
boolean |
addEntailment(Synset entailment)
Add a entailment to the list of entailments of this Synset. |
boolean |
addHolonym(Synset holonym)
Add a holonym to the list of holonyms of this Synset. |
boolean |
addHyperonym(Synset hyperonym)
Add a hyperonym to the list of hyperonyms of this Synset. |
boolean |
addHyponym(Synset hyponym)
Add a hyponym to the list of hyponyms of this Synset. |
boolean |
addMeronym(Synset meronym)
Add a meronym to the list of meronyms of this Synset. |
boolean |
addWordSense(WordSense wordsense)
Add a WordSense to the list of WordSenses of this Synset. |
int |
compareTo(java.lang.Object otherSynset)
Return a number representing the difference between this and an other synset. |
boolean |
equals(java.lang.Object otherSynset)
Return wether this Synset is the same as the other one. |
java.util.ArrayList |
getAssociations()
Get all associations of this Synset. |
java.util.ArrayList |
getCausations()
Get all causations of this Synset. |
java.util.ArrayList |
getEntailments()
Get Synsets that entail this Synset. |
java.util.ArrayList |
getHolonyms()
Get all holonyms of this Synset. |
java.util.ArrayList |
getHyperonyms()
Get all hyperonyms of this Synset. |
java.util.ArrayList |
getHyponyms()
Get all hyponyms of this Synset. |
java.util.ArrayList |
getMeronyms()
Get all meronyms of this Synset. |
char |
getPartOfSpeech()
Return the part of speech of this Synset. |
java.util.ArrayList |
getWordSenses()
Get all WordSenses that depend on this Synset. |
void |
printInfo()
Prints a lot of information about this Synset in the standard output stream. |
void |
setAssociations(java.util.ArrayList associations)
Set the associations of this Synset. |
void |
setCausations(java.util.ArrayList causations)
Set the causations of this Synset. |
void |
setEntailments(java.util.ArrayList entailments)
Set the Synsets that entail this Synset. |
void |
setHolonyms(java.util.ArrayList holonyms)
Set the holonyms of this Synset. |
void |
setHyperonyms(java.util.ArrayList hyperonyms)
Set the hyperonyms of this Synset. |
void |
setHyponyms(java.util.ArrayList hyponyms)
Set the hyponyms of this Synset. |
void |
setMeronyms(java.util.ArrayList meronyms)
Set the meronyms of this Synset. |
void |
setPartOfSpeech(char pos)
Set the part of speech of this Synset. |
void |
setWordSenses(java.util.ArrayList wordSenses)
Set the WordSenses that depend on this Synset. |
java.lang.String |
toAssociationsString()
Return a string that contains the graphemic representations of the WordSenses of the hyperonyms of this Synset. |
java.lang.String |
toCausationsString()
Return a string that contains the graphemic representations of the WordSenses of the causations of this Synset. |
java.lang.String |
toEntailmentsString()
Return a string that contains the graphemic representations of the WordSenses of the entailments of this Synset. |
java.lang.String |
toHolonymsString()
Return a string that contains the graphemic representations of the WordSenses of the holonyms of this Synset. |
java.lang.String |
toHyperonymsString()
Return a string that contains the graphemic representations of the WordSenses of the hyperonyms of this Synset. |
java.lang.String |
toHyponymsString()
Return a string that contains the graphemic representations of the WordSenses of the hyponyms of this Synset. |
java.lang.String |
toLexemeString()
Return a string that contains the graphemic representations of the WordSenses of this Synset. |
java.lang.String |
toMeronymsString()
Return a string that contains the graphemic representations of the WordSenses of the meronyms of this Synset. |
java.lang.String |
toString()
Return a string representation of this Synset. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Synset()
Method Detail |
public java.util.ArrayList getWordSenses()
public void setWordSenses(java.util.ArrayList wordSenses)
wordSenses
- An ArrayList of WordSenses.public boolean addWordSense(WordSense wordsense)
public java.util.ArrayList getHyperonyms()
public void setHyperonyms(java.util.ArrayList hyperonyms)
hyperonyms
- An ArrayList of Synsets.public boolean addHyperonym(Synset hyperonym)
public java.util.ArrayList getHyponyms()
public void setHyponyms(java.util.ArrayList hyponyms)
hyponyms
- An ArrayList of Synsets.public boolean addHyponym(Synset hyponym)
public java.util.ArrayList getHolonyms()
public void setHolonyms(java.util.ArrayList holonyms)
holonyms
- An ArrayList of Synsets.public boolean addHolonym(Synset holonym)
public java.util.ArrayList getMeronyms()
public void setMeronyms(java.util.ArrayList meronyms)
meronyms
- An ArrayList of Synsets.public boolean addMeronym(Synset meronym)
public java.util.ArrayList getEntailments()
public void setEntailments(java.util.ArrayList entailments)
entailments
- An ArrayList of Synsets.public boolean addEntailment(Synset entailment)
public java.util.ArrayList getCausations()
public void setCausations(java.util.ArrayList causations)
causations
- An ArrayList of Synsets.public boolean addCausation(Synset causation)
public java.util.ArrayList getAssociations()
public void setAssociations(java.util.ArrayList associations)
associations
- An ArrayList of Synsets.public boolean addAssociation(Synset association)
public char getPartOfSpeech()
public void setPartOfSpeech(char pos)
pos
- A char representing the part of speech.
Use part of speech constants of the Constant class.public boolean equals(java.lang.Object otherSynset)
public java.lang.String toString()
public java.lang.String toLexemeString()
public java.lang.String toHyperonymsString()
public java.lang.String toHyponymsString()
public java.lang.String toHolonymsString()
public java.lang.String toMeronymsString()
public java.lang.String toEntailmentsString()
public java.lang.String toCausationsString()
public java.lang.String toAssociationsString()
public int compareTo(java.lang.Object otherSynset)
compareTo
in interface java.lang.Comparable
public void printInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |