edu.illinois.cs.cogcomp.lbj.coref.scorers
Class Scorer<ST extends Solution>

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.scorers.Scorer<ST>
Type Parameters:
ST - The solution type.
Direct Known Subclasses:
ChainScorer

public abstract class Scorer<ST extends Solution>
extends java.lang.Object

Base class for scorers that take a predicted solution and an answer key and return some quality metric.


Constructor Summary
protected Scorer()
          Default constructor.
 
Method Summary
abstract  Score getScore(ST key, ST pred)
          Gets the score, whose contents will vary depending on the type of scorer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scorer

protected Scorer()
Default constructor.

Method Detail

getScore

public abstract Score getScore(ST key,
                               ST pred)
Gets the score, whose contents will vary depending on the type of scorer.

Parameters:
key - The answer key (gold standard solution).
pred - The predicted solution.
Returns:
The score.