Class LemmatizerFineGrainedReportListener
java.lang.Object
opennlp.tools.cmdline.FineGrainedReportListener
opennlp.tools.cmdline.lemmatizer.LemmatizerFineGrainedReportListener
- All Implemented Interfaces:
LemmatizerEvaluationMonitor, EvaluationMonitor<LemmaSample>
public class LemmatizerFineGrainedReportListener
extends 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 FineGrainedReportListener
FineGrainedReportListener.ConfusionMatrixLine, FineGrainedReportListener.Counter, FineGrainedReportListener.GroupedLabelComparator, FineGrainedReportListener.GroupedMatrixLabelComparator, FineGrainedReportListener.MatrixLabelComparator, FineGrainedReportListener.SimpleLabelComparator, FineGrainedReportListener.Stats -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a listener that will print to the configuredlogger.LemmatizerFineGrainedReportListener(OutputStream outputStream) Creates a listener that prints to a givenOutputStream -
Method Summary
Modifier and TypeMethodDescriptionvoidcorrectlyClassified(LemmaSample reference, LemmaSample prediction) voidmisclassified(LemmaSample reference, LemmaSample prediction) private voidstatsAdd(LemmaSample reference, LemmaSample prediction) void
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
LemmatizerFineGrainedReportListener
public LemmatizerFineGrainedReportListener()Creates a listener that will print to the configuredlogger. -
LemmatizerFineGrainedReportListener
Creates a listener that prints to a givenOutputStream
-
-
Method Details
-
misclassified
- Specified by:
misclassifiedin interfaceEvaluationMonitor<LemmaSample>
-
correctlyClassified
- Specified by:
correctlyClassifiedin interfaceEvaluationMonitor<LemmaSample>
-
statsAdd
-
writeReport
public void writeReport()- Specified by:
writeReportin classFineGrainedReportListener
-