org.maltparser.parser.history.kbest
Class ScoredCandidate
java.lang.Object
org.maltparser.parser.history.kbest.Candidate
org.maltparser.parser.history.kbest.ScoredCandidate
public class ScoredCandidate
- extends Candidate
- Since:
- 1.1
- Author:
- Johan Hall
|
Field Summary |
protected float |
score
The candidate score |
score
protected float score
- The candidate score
ScoredCandidate
public ScoredCandidate()
- Constructs a candidate object
getScore
public float getScore()
- Returns the score for this candidate if it is available, otherwise Double.NaN
- Returns:
- the score for this candidate if it is available, otherwise Double.NaN
setScore
public void setScore(Float score)
- Sets the score for this candidate.
- Parameters:
score - a score
reset
public void reset()
- Resets the candidate object
- Overrides:
reset in class Candidate
equals
public boolean equals(Object obj)
- Overrides:
equals in class Candidate
hashCode
public int hashCode()
- Overrides:
hashCode in class Candidate
toString
public String toString()
- Overrides:
toString in class Candidate
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.