Class LanguageDetectorEvaluationErrorListener

java.lang.Object
opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.langdetect.LanguageSample>
opennlp.tools.cmdline.langdetect.LanguageDetectorEvaluationErrorListener
All Implemented Interfaces:
opennlp.tools.langdetect.LanguageDetectorEvaluationMonitor, opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.langdetect.LanguageSample>

public class LanguageDetectorEvaluationErrorListener extends opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.langdetect.LanguageSample> implements opennlp.tools.langdetect.LanguageDetectorEvaluationMonitor
A default implementation of EvaluationMonitor that prints to an output stream.
  • Constructor Details

    • LanguageDetectorEvaluationErrorListener

      public LanguageDetectorEvaluationErrorListener()
      Creates a listener that will print to the configured logger.
    • LanguageDetectorEvaluationErrorListener

      public LanguageDetectorEvaluationErrorListener(OutputStream outputStream)
      Creates a listener that will print to a given OutputStream
  • Method Details

    • misclassified

      public void misclassified(opennlp.tools.langdetect.LanguageSample reference, opennlp.tools.langdetect.LanguageSample prediction)
      Specified by:
      misclassified in interface opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.langdetect.LanguageSample>
      Specified by:
      misclassified in class opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.langdetect.LanguageSample>