edu.illinois.cs.cogcomp.lbj.coref.scorers
Class ChainScorer<T>

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.scorers.Scorer<ChainSolution<T>>
      extended by edu.illinois.cs.cogcomp.lbj.coref.scorers.ChainScorer<T>
Type Parameters:
T - The type of element in a ChainSolution.
Direct Known Subclasses:
BCubedBase

public abstract class ChainScorer<T>
extends Scorer<ChainSolution<T>>

Base class for scorers that process ChainSolutions.

Author:
Eric Bengtson

Constructor Summary
protected ChainScorer()
          Default constructor.
 
Method Summary
 Score getScore(ChainSolution<T> key, ChainSolution<T> pred)
          Gets the score for a single solution.
abstract  Score getScore(java.util.List<ChainSolution<T>> keys, java.util.List<ChainSolution<T>> preds)
          Gets the score for a list of documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainScorer

protected ChainScorer()
Default constructor.

Method Detail

getScore

public Score getScore(ChainSolution<T> key,
                      ChainSolution<T> pred)
Gets the score for a single solution. If the single solution version of this method is not a special case of the list version, with a singleton list, then override this method.

Specified by:
getScore in class Scorer<ChainSolution<T>>
Parameters:
key - The answer key (gold standard) chain solution.
pred - The predicted chain solution.
Returns:
The score.

getScore

public abstract Score getScore(java.util.List<ChainSolution<T>> keys,
                               java.util.List<ChainSolution<T>> preds)
Gets the score for a list of documents.

Parameters:
keys - The answer keys (gold standard) chain solutions, one per document.
preds - The predicted chain solutions, one per document.