public class LemmatizerEvaluator extends Evaluator<LemmaSample>
LemmatizerEvaluator
measures the performance of
the given Lemmatizer
with the provided reference
LemmaSample
s.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.
|
String |
toString()
Represents this objects as human readable
String . |
evaluate, evaluateSample
public LemmatizerEvaluator(Lemmatizer aLemmatizer, LemmatizerEvaluationMonitor... listeners)
aLemmatizer
- a lemmatizerlisteners
- an array of evaluation listenerspublic double getWordAccuracy()
public long getWordCount()
Copyright © 2017 The Apache Software Foundation. All rights reserved.