org.cogroo.tools.featurizer
Class FeaturizerEvaluator
java.lang.Object
opennlp.tools.util.eval.Evaluator<FeatureSample>
org.cogroo.tools.featurizer.FeaturizerEvaluator
public class FeaturizerEvaluator
- extends opennlp.tools.util.eval.Evaluator<FeatureSample>
The FeaturizerEvaluator
measures the performance of the given
Featurizer
with the provided reference FeatureSample
s.
- See Also:
Evaluator
,
Featurizer
,
FeatureSample
Method Summary |
double |
getWordAccuracy()
Retrieves the word accuracy. |
long |
getWordCount()
Retrieves the total number of words considered in the evaluation. |
Methods inherited from class opennlp.tools.util.eval.Evaluator |
evaluate, evaluateSample |
FeaturizerEvaluator
public FeaturizerEvaluator(Featurizer featurizer,
FeaturizerEvaluationMonitor... listeners)
- Initializes the current instance with the given
Featurizer
.
- Parameters:
featurizer
- the Featurizer
to evaluate.listeners
- evaluation listeners
getWordAccuracy
public double getWordAccuracy()
- Retrieves the word accuracy.
This is defined as: word accuracy = correctly detected tags / total words
- Returns:
- the word accuracy
getWordCount
public long getWordCount()
- Retrieves the total number of words considered in the evaluation.
- Returns:
- the word count
Copyright © 2012-2013 CoGrOO. All Rights Reserved.