Package opennlp.tools.postag
Class POSEvaluator
- java.lang.Object
-
- opennlp.tools.util.eval.Evaluator<POSSample>
-
- opennlp.tools.postag.POSEvaluator
-
public class POSEvaluator extends Evaluator<POSSample>
ThePOSEvaluatormeasures the performance of the givenPOSTaggerwith the provided referencesamples.
-
-
Constructor Summary
Constructors Constructor Description POSEvaluator(POSTagger tagger, POSTaggerEvaluationMonitor... listeners)Initializes the current instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetWordAccuracy()Accuracy defined as:word accuracy = correctly detected tags / total wordslonggetWordCount()StringtoString()Represents this object as human-readableString.-
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
-
-
-
Constructor Detail
-
POSEvaluator
public POSEvaluator(POSTagger tagger, POSTaggerEvaluationMonitor... listeners)
Initializes the current instance.- Parameters:
tagger- ThePOSTaggerto evaluate.listeners- theevaluation listeners.
-
-