Package opennlp.tools.tokenize
Class TokenizerEvaluator
- java.lang.Object
-
- opennlp.tools.util.eval.Evaluator<TokenSample>
-
- opennlp.tools.tokenize.TokenizerEvaluator
-
public class TokenizerEvaluator extends Evaluator<TokenSample>
TheTokenizerEvaluator
measures the performance of the givenTokenizer
with the provided referencesamples
.- See Also:
Evaluator
,Tokenizer
,TokenSample
-
-
Constructor Summary
Constructors Constructor Description TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor... listeners)
Initializes an instance to evaluate aTokenizer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FMeasure
getFMeasure()
-
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
-
-
-
Constructor Detail
-
TokenizerEvaluator
public TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor... listeners)
Initializes an instance to evaluate aTokenizer
.- Parameters:
tokenizer
- TheTokenizer
to evaluate.listeners
- Theevaluation listeners
.
-
-
Method Detail
-
getFMeasure
public FMeasure getFMeasure()
-
-