|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcic.wsd.semcor.AmbiguousWord
public class AmbiguousWord
Class for storing an ambiguous lemma.
Field Summary | |
---|---|
(package private) int[] |
correctSenses
Senses retrieved from SEMCOR wnsn attribute. |
(package private) double |
idf
IDF from the lemma retrieved from WordNet.getIDF(lemma) |
(package private) int |
index
The index of this word in the current document. |
(package private) java.lang.String |
lemma
WordNet lemma retrieved from WordNet.Morphy() method. |
(package private) java.lang.String |
pos
POS tag of the lemma. |
(package private) java.util.ArrayList<cic.wordnet.ParsedSynset> |
senses
Senses for the lemma retrieved from WordNet using getLemma(lemma). |
(package private) double |
tf
TF value of this lemma set by an Input object. |
Constructor Summary | |
---|---|
AmbiguousWord(java.lang.String lemma,
java.lang.String pos,
java.lang.String correctSenses,
int index)
Creates an ambiguous word from SEMCOR info. |
Method Summary | |
---|---|
int[] |
getCorrectSenses()
Returns the correct senses of this word. |
double |
getIDF()
Returns the IDF value of this lemma. |
int |
getIndex()
Return the position of this word in the document. |
java.lang.String |
getLemma()
Returns this lemma in format "lemma_P". |
java.lang.String |
getPOS()
Returns this word's POS tag. |
java.util.ArrayList<java.lang.String> |
getPossibleHypernyms()
Returns an ArrayList containing the possible hypernyms of this lemma. |
java.util.ArrayList<java.lang.String> |
getPossibleSynonyms()
Returns an ArrayList containing the possible synonyms of this lemma. |
java.util.ArrayList<cic.wordnet.ParsedSynset> |
getSenses()
Returns the possible senses of this lemma. |
double |
getTf()
Return the TF value of this word. |
void |
setTf(double tf)
Sets the TF value of this lemma in its current document. |
java.lang.String |
toString()
Returns the lemma. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.lang.String lemma
java.lang.String pos
java.util.ArrayList<cic.wordnet.ParsedSynset> senses
int[] correctSenses
double idf
double tf
int index
Constructor Detail |
---|
public AmbiguousWord(java.lang.String lemma, java.lang.String pos, java.lang.String correctSenses, int index)
lemma
- Value of SEMCOR lemma attribute.pos
- Value of SEMCOR pos attribute.correctSenses
- Value of SEMCOR wnsn attribute.
"U" means that any sense is correct.index
- The problem number.Method Detail |
---|
public int getIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public double getTf()
public void setTf(double tf)
tf
- TF value.public double getIDF()
public java.lang.String getLemma()
public java.lang.String getPOS()
public java.util.ArrayList<cic.wordnet.ParsedSynset> getSenses()
public int[] getCorrectSenses()
public java.util.ArrayList<java.lang.String> getPossibleSynonyms()
public java.util.ArrayList<java.lang.String> getPossibleHypernyms()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |