edu.stanford.nlp.util
Class ScoredObject
java.lang.Object
edu.stanford.nlp.util.ScoredObject
- All Implemented Interfaces:
- Scored
public class ScoredObject
- extends Object
- implements Scored
Scored Object: Wrapper class for holding a scored object
- Author:
- Dan Klein
ScoredObject
public ScoredObject()
ScoredObject
public ScoredObject(Object object,
double score)
score
public double score()
- Specified by:
score
in interface Scored
- Returns:
- The score of this thing.
setScore
public void setScore(double score)
object
public Object object()
setObject
public void setObject(Object object)
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group