public class POSEvaluator extends Evaluator<POSSample>
POSEvaluator measures the performance of
the given POSTagger with the provided reference
POSSamples.| Constructor and Description |
|---|
POSEvaluator(POSTagger tagger,
POSTaggerEvaluationMonitor... 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, evaluateSamplepublic POSEvaluator(POSTagger tagger, POSTaggerEvaluationMonitor... listeners)
tagger - listeners - an array of evaluation listenerspublic double getWordAccuracy()
public long getWordCount()
Copyright © 2017 The Apache Software Foundation. All rights reserved.