Package opennlp.tools.lemmatizer
Class LemmatizerEvaluator
- java.lang.Object
-
- opennlp.tools.util.eval.Evaluator<LemmaSample>
-
- opennlp.tools.lemmatizer.LemmatizerEvaluator
-
public class LemmatizerEvaluator extends Evaluator<LemmaSample>
TheLemmatizerEvaluator
measures the performance of the givenLemmatizer
with the provided referencesamples
.
-
-
Constructor Summary
Constructors Constructor Description LemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners)
Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getWordAccuracy()
Accuracy is defined as:word accuracy = correctly detected tags / total words
long
getWordCount()
String
toString()
Returns this object's human-readableString
representation.-
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
-
-
-
Constructor Detail
-
LemmatizerEvaluator
public LemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners)
Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
.- Parameters:
aLemmatizer
- TheLemmatizer
to evaluate.listeners
- Theevaluation listeners
.
-
-