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