opennlp.tools.cmdline
Class EvaluationErrorPrinter<T>

java.lang.Object
  extended by opennlp.tools.cmdline.EvaluationErrorPrinter<T>
All Implemented Interfaces:
EvaluationMonitor<T>
Direct Known Subclasses:
ChunkEvaluationErrorListener, NameEvaluationErrorListener, POSEvaluationErrorListener, SentenceEvaluationErrorListener, TokenEvaluationErrorListener

public abstract class EvaluationErrorPrinter<T>
extends Object
implements EvaluationMonitor<T>

Note: Do not use this class, internal use only!


Constructor Summary
protected EvaluationErrorPrinter(OutputStream outputStream)
           
 
Method Summary
 void correctlyClassified(T reference, T prediction)
           
abstract  void missclassified(T reference, T prediction)
           
protected  void printError(Span[] references, Span[] predictions, T referenceSample, T predictedSample, String sentence)
           
protected  void printError(Span[] references, Span[] predictions, T referenceSample, T predictedSample, String[] sentenceTokens)
           
protected  void printError(String[] references, String[] predictions, T referenceSample, T predictedSample, String[] sentenceTokens)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationErrorPrinter

protected EvaluationErrorPrinter(OutputStream outputStream)
Method Detail

printError

protected void printError(Span[] references,
                          Span[] predictions,
                          T referenceSample,
                          T predictedSample,
                          String sentence)

printError

protected void printError(Span[] references,
                          Span[] predictions,
                          T referenceSample,
                          T predictedSample,
                          String[] sentenceTokens)

printError

protected void printError(String[] references,
                          String[] predictions,
                          T referenceSample,
                          T predictedSample,
                          String[] sentenceTokens)

correctlyClassified

public void correctlyClassified(T reference,
                                T prediction)
Specified by:
correctlyClassified in interface EvaluationMonitor<T>

missclassified

public abstract void missclassified(T reference,
                                    T prediction)
Specified by:
missclassified in interface EvaluationMonitor<T>


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.