Package opennlp.tools.util.eval
Klasse Evaluator<T>
java.lang.Object
opennlp.tools.util.eval.Evaluator<T>
- Bekannte direkte Unterklassen:
ChunkerEvaluator
,DetokenizerEvaluator
,DocumentCategorizerEvaluator
,LanguageDetectorEvaluator
,LemmatizerEvaluator
,ParserEvaluator
,POSEvaluator
,SentenceDetectorEvaluator
,TokenizerEvaluator
,TokenNameFinderEvaluator
An abstract base class for evaluators.
Evaluation results are the arithmetic mean of the
scores calculated for each reference sample.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
evaluate
(ObjectStream<T> samples) Reads allsample objects
and evaluates each instance via theevaluateSample(Object)
method.void
evaluateSample
(T sample) Evaluates the given reference object.
-
Konstruktordetails
-
Evaluator
-
-
Methodendetails
-
evaluateSample
Evaluates the given reference object. The default implementation callsprocessSample(Object)
note: this method will be changed to private in the future. Implementations should override
processSample(Object)
instead. If this method is overridden, the implementation has to update the score after every invocation.- Parameter:
sample
- Asample
to be evaluated.
-
evaluate
Reads allsample objects
and evaluates each instance via theevaluateSample(Object)
method.- Parameter:
samples
- Thestream
of reference which shall be evaluated.- Löst aus:
IOException
- Thrown if IO errors occurred.
-