Package opennlp.tools.cmdline.postag
Class POSTaggerFineGrainedReportListener
- java.lang.Object
-
- opennlp.tools.cmdline.FineGrainedReportListener
-
- opennlp.tools.cmdline.postag.POSTaggerFineGrainedReportListener
-
- All Implemented Interfaces:
POSTaggerEvaluationMonitor
,EvaluationMonitor<POSSample>
public class POSTaggerFineGrainedReportListener extends opennlp.tools.cmdline.FineGrainedReportListener implements POSTaggerEvaluationMonitor
Generates a detailed report for the POS Tagger.It is possible to use it from an API and access the statistics using the provided getters
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class opennlp.tools.cmdline.FineGrainedReportListener
opennlp.tools.cmdline.FineGrainedReportListener.ConfusionMatrixLine, opennlp.tools.cmdline.FineGrainedReportListener.Counter, opennlp.tools.cmdline.FineGrainedReportListener.GroupedLabelComparator, opennlp.tools.cmdline.FineGrainedReportListener.GroupedMatrixLabelComparator, opennlp.tools.cmdline.FineGrainedReportListener.MatrixLabelComparator, opennlp.tools.cmdline.FineGrainedReportListener.SimpleLabelComparator, opennlp.tools.cmdline.FineGrainedReportListener.Stats
-
-
Constructor Summary
Constructors Constructor Description POSTaggerFineGrainedReportListener()
Creates a listener that will print toSystem#err
.POSTaggerFineGrainedReportListener(OutputStream outputStream)
Creates a listener that prints to a givenOutputStream
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
correctlyClassified(POSSample reference, POSSample prediction)
void
misclassified(POSSample reference, POSSample prediction)
void
writeReport()
-
-
-
Constructor Detail
-
POSTaggerFineGrainedReportListener
public POSTaggerFineGrainedReportListener()
Creates a listener that will print toSystem#err
.
-
POSTaggerFineGrainedReportListener
public POSTaggerFineGrainedReportListener(OutputStream outputStream)
Creates a listener that prints to a givenOutputStream
.
-
-
Method Detail
-
misclassified
public void misclassified(POSSample reference, POSSample prediction)
- Specified by:
misclassified
in interfaceEvaluationMonitor<POSSample>
-
correctlyClassified
public void correctlyClassified(POSSample reference, POSSample prediction)
- Specified by:
correctlyClassified
in interfaceEvaluationMonitor<POSSample>
-
writeReport
public void writeReport()
- Specified by:
writeReport
in classopennlp.tools.cmdline.FineGrainedReportListener
-
-