Package opennlp.tools.lemmatizer
Class LemmatizerEvaluator
The 
LemmatizerEvaluator measures the performance of
 the given Lemmatizer with the provided reference
 samples.- 
Constructor SummaryConstructorsConstructorDescriptionLemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners) Initializes aLemmatizerEvaluatorinstance with the givenLemmatizer.
- 
Method SummaryMethods inherited from class opennlp.tools.util.eval.Evaluatorevaluate, evaluateSample
- 
Constructor Details- 
LemmatizerEvaluatorInitializes aLemmatizerEvaluatorinstance with the givenLemmatizer.- Parameters:
- aLemmatizer- The- Lemmatizerto evaluate.
- listeners- The- evaluation listeners.
 
 
- 
- 
Method Details- 
getWordAccuracypublic double getWordAccuracy()Accuracy is defined as:word accuracy = correctly detected tags / total words- Returns:
- Retrieves the word accuracy.
 
- 
getWordCountpublic long getWordCount()- Returns:
- Retrieves the total number of words considered in the evaluation.
 
- 
toStringReturns this object's human-readableStringrepresentation.
 
-