|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.util.eval.Evaluator<T>
public abstract class Evaluator<T>
The Evaluator
is an abstract base class for evaluators.
Evaluation results are the arithmetic mean of the
scores calculated for each reference sample.
Constructor Summary | |
---|---|
Evaluator()
|
Method Summary | |
---|---|
void |
evaluate(ObjectStream<T> samples)
Reads all sample objects from the stream and evaluates each sample object with evaluateSample(Object) method. |
abstract void |
evaluateSample(T sample)
Evaluates the given reference object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Evaluator()
Method Detail |
---|
public abstract void evaluateSample(T sample)
sample
- the sample to be evaluatedpublic void evaluate(ObjectStream<T> samples) throws java.io.IOException
evaluateSample(Object)
method.
samples
- the stream of reference which
should be evaluated.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |