modnlp.dstruct
public class WordScorePair extends java.lang.Object implements java.lang.Comparable
Constructor and Description |
---|
WordScorePair(java.lang.String s,
double c) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object wfp) |
int |
compareTo(WordScorePair wfp) |
java.lang.Double |
getDoubleScore() |
double |
getScore() |
java.lang.String |
getWord()
Get the value of word.
|
void |
setScore(double v)
Set the value of score.
|
void |
setWord(java.lang.String v)
Set the value of word.
|
java.lang.String |
toString() |
public java.lang.String getWord()
public void setWord(java.lang.String v)
v
- Value to assign to word.public double getScore()
public java.lang.Double getDoubleScore()
public java.lang.String toString()
toString
in class java.lang.Object
public void setScore(double v)
v
- Value to assign to score.public int compareTo(java.lang.Object wfp)
compareTo
in interface java.lang.Comparable
public int compareTo(WordScorePair wfp)