org.maltparser.parser.history.kbest
Class ScoredCandidate
java.lang.Object
   org.maltparser.parser.history.kbest.Candidate
org.maltparser.parser.history.kbest.Candidate
       org.maltparser.parser.history.kbest.ScoredCandidate
org.maltparser.parser.history.kbest.ScoredCandidate
- public class ScoredCandidate 
- extends Candidate
- Since:
- 1.1
- Author:
- Johan Hall
| Field Summary | 
| protected  float | scoreThe 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:
- resetin class- Candidate
 
- 
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Candidate
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Candidate
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Candidate
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.