Class SentimentEvaluationErrorListener
java.lang.Object
opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentiment.SentimentSample>
opennlp.tools.cmdline.sentiment.SentimentEvaluationErrorListener
- All Implemented Interfaces:
opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.sentiment.SentimentSample>
public class SentimentEvaluationErrorListener
extends opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentiment.SentimentSample>
implements opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.sentiment.SentimentSample>
Class for creating an evaluation error listener.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmisclassified(opennlp.tools.sentiment.SentimentSample reference, opennlp.tools.sentiment.SentimentSample prediction) Prints the error in case of a missclassification in the evaluatorMethods 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
-
SentimentEvaluationErrorListener
public SentimentEvaluationErrorListener()Constructor
-
-
Method Details
-
misclassified
public void misclassified(opennlp.tools.sentiment.SentimentSample reference, opennlp.tools.sentiment.SentimentSample prediction) Prints the error in case of a missclassification in the evaluator- Specified by:
misclassifiedin interfaceopennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.sentiment.SentimentSample>- Specified by:
misclassifiedin classopennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.sentiment.SentimentSample>- Parameters:
reference- the sentiment sample reference to be usedprediction- the sentiment sampple prediction
-