Package opennlp.tools.lemmatizer
Class LemmatizerEvaluator
The
LemmatizerEvaluator measures the performance of
the given Lemmatizer with the provided reference
samples.-
Constructor Summary
ConstructorsConstructorDescriptionLemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners) Initializes aLemmatizerEvaluatorinstance with the givenLemmatizer. -
Method Summary
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
Constructor Details
-
LemmatizerEvaluator
Initializes aLemmatizerEvaluatorinstance with the givenLemmatizer.- Parameters:
aLemmatizer- TheLemmatizerto 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-readableStringrepresentation.
-