Class SentenceEvaluationErrorListener
java.lang.Object
opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentdetect.SentenceSample>
opennlp.tools.cmdline.sentdetect.SentenceEvaluationErrorListener
- All Implemented Interfaces:
opennlp.tools.sentdetect.SentenceDetectorEvaluationMonitor, opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.sentdetect.SentenceSample>
public class SentenceEvaluationErrorListener
extends opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentdetect.SentenceSample>
implements opennlp.tools.sentdetect.SentenceDetectorEvaluationMonitor
A default implementation of
EvaluationMonitor that prints
to an output stream.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a listener that will print to the configuredlogger.SentenceEvaluationErrorListener(OutputStream outputStream) Creates a listener that will print to a givenOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidmisclassified(opennlp.tools.sentdetect.SentenceSample reference, opennlp.tools.sentdetect.SentenceSample prediction) Methods inherited from class opennlp.tools.cmdline.EvaluationErrorPrinter
correctlyClassifiedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opennlp.tools.util.eval.EvaluationMonitor
correctlyClassified
-
Constructor Details
-
SentenceEvaluationErrorListener
public SentenceEvaluationErrorListener()Creates a listener that will print to the configuredlogger. -
SentenceEvaluationErrorListener
Creates a listener that will print to a givenOutputStream.
-
-
Method Details
-
misclassified
public void misclassified(opennlp.tools.sentdetect.SentenceSample reference, opennlp.tools.sentdetect.SentenceSample prediction) - Specified by:
misclassifiedin interfaceopennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.sentdetect.SentenceSample>- Specified by:
misclassifiedin classopennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentdetect.SentenceSample>
-