Package opennlp.tools.lemmatizer
Class LemmatizerEvaluator
The
LemmatizerEvaluator
measures the performance of
the given Lemmatizer
with the provided reference
samples
.-
Constructor Summary
ConstructorDescriptionLemmatizerEvaluator
(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners) Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
. -
Method Summary
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
Constructor Details
-
LemmatizerEvaluator
Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
.- Parameters:
aLemmatizer
- TheLemmatizer
to evaluate.listeners
- Theevaluation listeners
.
-
-
Method Details
-
getWordAccuracy
public double getWordAccuracy()Accuracy is defined as:word accuracy = correctly detected tags / total words
- Returns:
- Retrieves the word accuracy.
-
getWordCount
public long getWordCount()- Returns:
- Retrieves the total number of words considered in the evaluation.
-
toString
Returns this object's human-readableString
representation.
-