org.cogroo.cmdline.featurizer
Class FeaturizerEvaluationErrorListener

java.lang.Object
  extended by opennlp.tools.cmdline.EvaluationErrorPrinter<FeatureSample>
      extended by org.cogroo.cmdline.featurizer.FeaturizerEvaluationErrorListener
All Implemented Interfaces:
opennlp.tools.util.eval.EvaluationMonitor<FeatureSample>, FeaturizerEvaluationMonitor

public class FeaturizerEvaluationErrorListener
extends opennlp.tools.cmdline.EvaluationErrorPrinter<FeatureSample>
implements FeaturizerEvaluationMonitor

A default implementation of EvaluationMonitor that prints to an output stream.


Constructor Summary
FeaturizerEvaluationErrorListener()
          Creates a listener that will print to System.err
FeaturizerEvaluationErrorListener(OutputStream outputStream)
          Creates a listener that will print to a given OutputStream
 
Method Summary
 void missclassified(FeatureSample reference, FeatureSample prediction)
           
 
Methods inherited from class opennlp.tools.cmdline.EvaluationErrorPrinter
correctlyClassified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface opennlp.tools.util.eval.EvaluationMonitor
correctlyClassified
 

Constructor Detail

FeaturizerEvaluationErrorListener

public FeaturizerEvaluationErrorListener()
Creates a listener that will print to System.err


FeaturizerEvaluationErrorListener

public FeaturizerEvaluationErrorListener(OutputStream outputStream)
Creates a listener that will print to a given OutputStream

Method Detail

missclassified

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


Copyright © 2012-2013 CoGrOO. All Rights Reserved.