opennlp.tools.cmdline.namefind
Class NameEvaluationErrorListener

java.lang.Object
  extended by opennlp.tools.cmdline.EvaluationErrorPrinter<NameSample>
      extended by opennlp.tools.cmdline.namefind.NameEvaluationErrorListener
All Implemented Interfaces:
TokenNameFinderEvaluationMonitor, EvaluationMonitor<NameSample>

public class NameEvaluationErrorListener
extends EvaluationErrorPrinter<NameSample>
implements TokenNameFinderEvaluationMonitor

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


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

Constructor Detail

NameEvaluationErrorListener

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


NameEvaluationErrorListener

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

Method Detail

missclassified

public void missclassified(NameSample reference,
                           NameSample prediction)
Specified by:
missclassified in interface EvaluationMonitor<NameSample>
Specified by:
missclassified in class EvaluationErrorPrinter<NameSample>


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