Class DetokenizerEvaluator
The
DetokenizerEvaluator measures the performance of
the given Detokenizer with the provided reference
samples.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DetokenizerTheDetokenizerused to create the predicted tokens.private final FMeasure -
Constructor Summary
ConstructorsConstructorDescriptionDetokenizerEvaluator(Detokenizer detokenizer, DetokenEvaluationErrorListener... listeners) Initializes the current instance with the givenDetokenizer. -
Method Summary
Modifier and TypeMethodDescriptionprotected TokenSampleprocessSample(TokenSample reference) Evaluates the given referenceTsample object.Methods inherited from class Evaluator
evaluate, evaluateSample
-
Field Details
-
fmeasure
-
detokenizer
TheDetokenizerused to create the predicted tokens.
-
-
Constructor Details
-
DetokenizerEvaluator
Initializes the current instance with the givenDetokenizer.- Parameters:
detokenizer- TheDetokenizerto evaluate.listeners- Theevaluation sample listeners.
-
-
Method Details
-
processSample
Description copied from class:EvaluatorEvaluates the given referenceTsample object.The implementation has to update the score after every invocation.
- Specified by:
processSamplein classEvaluator<TokenSample>- Parameters:
reference- Areference sample.- Returns:
- The predicted
sample.
-
getFMeasure
-