public abstract class EvaluationErrorPrinter<T> extends Object implements EvaluationMonitor<T>
Modifier | Constructor and Description |
---|---|
protected |
EvaluationErrorPrinter(OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
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) |
protected void |
printError(String id,
Span[] references,
Span[] predictions,
T referenceSample,
T predictedSample,
String[] sentenceTokens) |
protected void |
printError(T referenceSample,
T predictedSample) |
protected EvaluationErrorPrinter(OutputStream outputStream)
protected void printError(Span[] references, Span[] predictions, T referenceSample, T predictedSample, String sentence)
protected void printError(String id, Span[] references, Span[] predictions, T referenceSample, T predictedSample, String[] sentenceTokens)
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)
public void correctlyClassified(T reference, T prediction)
correctlyClassified
in interface EvaluationMonitor<T>
public abstract void missclassified(T reference, T prediction)
missclassified
in interface EvaluationMonitor<T>
Copyright © 2015 The Apache Software Foundation. All rights reserved.