Class DependencyEvaluationErrorListener
java.lang.Object
opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.depparse.DependencySample>
opennlp.tools.cmdline.depparse.DependencyEvaluationErrorListener
- All Implemented Interfaces:
opennlp.tools.depparse.DependencyEvaluationMonitor, opennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.depparse.DependencySample>
public class DependencyEvaluationErrorListener
extends opennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.depparse.DependencySample>
implements opennlp.tools.depparse.DependencyEvaluationMonitor
A
DependencyEvaluationMonitor that prints each misparsed sentence next to its
gold tree, in the five-column form of DependencySample.toString().-
Constructor Summary
ConstructorsConstructorDescriptionCreates a listener that prints to the logger of this class.DependencyEvaluationErrorListener(OutputStream outputStream) Creates a listener that prints to the givenOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidmisclassified(opennlp.tools.depparse.DependencySample reference, opennlp.tools.depparse.DependencySample prediction) Methods inherited from class opennlp.tools.cmdline.EvaluationErrorPrinter
correctlyClassifiedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opennlp.tools.util.eval.EvaluationMonitor
correctlyClassified
-
Constructor Details
-
DependencyEvaluationErrorListener
public DependencyEvaluationErrorListener()Creates a listener that prints to the logger of this class. -
DependencyEvaluationErrorListener
Creates a listener that prints to the givenOutputStream.- Parameters:
outputStream- The stream to print to. Must not benull.
-
-
Method Details
-
misclassified
public void misclassified(opennlp.tools.depparse.DependencySample reference, opennlp.tools.depparse.DependencySample prediction) Prints the reference sample and the prediction.
- Specified by:
misclassifiedin interfaceopennlp.tools.util.eval.EvaluationMonitor<opennlp.tools.depparse.DependencySample>- Specified by:
misclassifiedin classopennlp.tools.cmdline.EvaluationErrorPrinter<opennlp.tools.depparse.DependencySample>
-