public class POSEvaluator extends Evaluator<POSSample>
POSEvaluator
measures the performance of
the given POSTagger
with the provided reference
POSSample
s.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.
|
java.lang.String |
toString()
Represents this objects as human readable
String . |
evaluate, evaluateSample
public POSEvaluator(POSTagger tagger, POSTaggerEvaluationMonitor... listeners)
tagger
- listeners
- an array of evaluation listenerspublic double getWordAccuracy()
public long getWordCount()
public java.lang.String toString()
String
.toString
in class java.lang.Object
Copyright © 2010 - 2023 Adobe. All Rights Reserved