Package opennlp.tools.lemmatizer
Klasse LemmatizerEvaluator
The
LemmatizerEvaluator
measures the performance of
the given Lemmatizer
with the provided reference
samples
.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLemmatizerEvaluator
(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners) Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
Konstruktordetails
-
LemmatizerEvaluator
Initializes aLemmatizerEvaluator
instance with the givenLemmatizer
.- Parameter:
aLemmatizer
- TheLemmatizer
to evaluate.listeners
- Theevaluation listeners
.
-
-
Methodendetails
-
getWordAccuracy
public double getWordAccuracy()Accuracy is defined as:word accuracy = correctly detected tags / total words
- Gibt zurück:
- Retrieves the word accuracy.
-
getWordCount
public long getWordCount()- Gibt zurück:
- Retrieves the total number of words considered in the evaluation.
-
toString
Returns this object's human-readableString
representation.
-