opennlp.tools.cmdline
Class EvaluationErrorPrinter<T>
java.lang.Object
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!
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 |
EvaluationErrorPrinter
protected EvaluationErrorPrinter(OutputStream outputStream)
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 © 2013 The Apache Software Foundation. All Rights Reserved.