public class LemmatizerFineGrainedReportListener extends opennlp.tools.cmdline.FineGrainedReportListener implements LemmatizerEvaluationMonitor
It is possible to use it from an API and access the statistics using the provided getters.
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 and Description |
---|
LemmatizerFineGrainedReportListener()
Creates a listener that will print to
System.err |
LemmatizerFineGrainedReportListener(OutputStream outputStream)
Creates a listener that prints to a given
OutputStream |
Modifier and Type | Method and Description |
---|---|
void |
correctlyClassified(LemmaSample reference,
LemmaSample prediction) |
void |
missclassified(LemmaSample reference,
LemmaSample prediction) |
void |
writeReport() |
public LemmatizerFineGrainedReportListener()
System.err
public LemmatizerFineGrainedReportListener(OutputStream outputStream)
OutputStream
public void missclassified(LemmaSample reference, LemmaSample prediction)
missclassified
in interface EvaluationMonitor<LemmaSample>
public void correctlyClassified(LemmaSample reference, LemmaSample prediction)
correctlyClassified
in interface EvaluationMonitor<LemmaSample>
public void writeReport()
writeReport
in class opennlp.tools.cmdline.FineGrainedReportListener
Copyright © 2020 The Apache Software Foundation. All rights reserved.