public class TokenizerEvaluator extends Evaluator<TokenSample>
TokenizerEvaluator
measures the performance of
the given Tokenizer
with the provided reference
TokenSample
s.Evaluator
,
Tokenizer
,
TokenSample
Constructor and Description |
---|
TokenizerEvaluator(Tokenizer tokenizer,
TokenizerEvaluationMonitor... listeners)
Initializes the current instance with the
given
Tokenizer . |
Modifier and Type | Method and Description |
---|---|
FMeasure |
getFMeasure() |
evaluate, evaluateSample
public TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor... listeners)
Tokenizer
.tokenizer
- the Tokenizer
to evaluate.listeners
- evaluation sample listenerspublic FMeasure getFMeasure()
Copyright © 2017 The Apache Software Foundation. All rights reserved.