Package opennlp.tools.cmdline.lemmatizer
Class LemmatizerFineGrainedReportListener
- java.lang.Object
-
- opennlp.tools.cmdline.FineGrainedReportListener
-
- opennlp.tools.cmdline.lemmatizer.LemmatizerFineGrainedReportListener
-
- All Implemented Interfaces:
LemmatizerEvaluationMonitor,EvaluationMonitor<LemmaSample>
public class LemmatizerFineGrainedReportListener extends opennlp.tools.cmdline.FineGrainedReportListener implements LemmatizerEvaluationMonitor
Generates a detailed report for the Lemmatizer.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 LemmatizerFineGrainedReportListener()Creates a listener that will print toSystem#err.LemmatizerFineGrainedReportListener(OutputStream outputStream)Creates a listener that prints to a givenOutputStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcorrectlyClassified(LemmaSample reference, LemmaSample prediction)voidmisclassified(LemmaSample reference, LemmaSample prediction)voidwriteReport()
-
-
-
Constructor Detail
-
LemmatizerFineGrainedReportListener
public LemmatizerFineGrainedReportListener()
Creates a listener that will print toSystem#err.
-
LemmatizerFineGrainedReportListener
public LemmatizerFineGrainedReportListener(OutputStream outputStream)
Creates a listener that prints to a givenOutputStream
-
-
Method Detail
-
misclassified
public void misclassified(LemmaSample reference, LemmaSample prediction)
- Specified by:
misclassifiedin interfaceEvaluationMonitor<LemmaSample>
-
correctlyClassified
public void correctlyClassified(LemmaSample reference, LemmaSample prediction)
- Specified by:
correctlyClassifiedin interfaceEvaluationMonitor<LemmaSample>
-
writeReport
public void writeReport()
- Specified by:
writeReportin classopennlp.tools.cmdline.FineGrainedReportListener
-
-