MaltParser 1.4.1

org.maltparser.parser.history.kbest
Class ScoredCandidate

java.lang.Object
  extended by org.maltparser.parser.history.kbest.Candidate
      extended by 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
 
Fields inherited from class org.maltparser.parser.history.kbest.Candidate
actionCode
 
Constructor Summary
ScoredCandidate()
          Constructs a candidate object
 
Method Summary
 boolean equals(Object obj)
           
 float getScore()
          Returns the score for this candidate if it is available, otherwise Double.NaN
 int hashCode()
           
 void reset()
          Resets the candidate object
 void setScore(Float score)
          Sets the score for this candidate.
 String toString()
           
 
Methods inherited from class org.maltparser.parser.history.kbest.Candidate
getActionCode, setActionCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

score

protected float score
The candidate score

Constructor Detail

ScoredCandidate

public ScoredCandidate()
Constructs a candidate object

Method Detail

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

MaltParser 1.4.1

Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.