public class LemmatizerEvaluator extends opennlp.tools.util.eval.Evaluator<LemmaSample>
LemmatizerEvaluator measures the performance of
the given Lemmatizer with the provided reference
LemmaSamples.| Constructor and Description |
|---|
LemmatizerEvaluator(Lemmatizer aLemmatizer,
LemmatizerEvaluationMonitor... listeners)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getWordAccuracy()
Retrieves the word accuracy.
|
long |
getWordCount()
Retrieves the total number of words considered
in the evaluation.
|
protected LemmaSample |
processSample(LemmaSample reference)
Evaluates the given reference
LemmaSample object. |
String |
toString()
Represents this objects as human readable
String. |
public LemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners)
aLemmatizer - a lemmatizerlisteners - an array of evaluation listenersprotected LemmaSample processSample(LemmaSample reference)
LemmaSample object.
This is done by tagging the sentence from the reference
LemmaSample with the Lemmatizer. The
tags are then used to update the word accuracy score.processSample in class opennlp.tools.util.eval.Evaluator<LemmaSample>reference - the reference LemmaSample.LemmaSample.public double getWordAccuracy()
public long getWordCount()
Copyright © 2016 IXA pipes. All rights reserved.