public class FeaturizerEvaluator extends opennlp.tools.util.eval.Evaluator<FeatureSample>
FeaturizerEvaluator measures the performance of the given
Featurizer with the provided reference FeatureSamples.Evaluator,
Featurizer,
FeatureSample| Constructor and Description |
|---|
FeaturizerEvaluator(Featurizer featurizer,
FeaturizerEvaluationMonitor... listeners)
Initializes the current instance with the given
Featurizer. |
| Modifier and Type | Method and Description |
|---|---|
double |
getWordAccuracy()
Retrieves the word accuracy.
|
long |
getWordCount()
Retrieves the total number of words considered in the evaluation.
|
public FeaturizerEvaluator(Featurizer featurizer, FeaturizerEvaluationMonitor... listeners)
Featurizer.featurizer - the Featurizer to evaluate.listeners - evaluation listenerspublic double getWordAccuracy()
public long getWordCount()
Copyright © 2012–2017 CoGrOO. All rights reserved.