opennlp.tools.cmdline.chunker
Class ChunkEvaluationErrorListener

java.lang.Object
  extended by opennlp.tools.cmdline.EvaluationErrorPrinter<ChunkSample>
      extended by opennlp.tools.cmdline.chunker.ChunkEvaluationErrorListener
All Implemented Interfaces:
ChunkerEvaluationMonitor, EvaluationMonitor<ChunkSample>

public class ChunkEvaluationErrorListener
extends EvaluationErrorPrinter<ChunkSample>
implements ChunkerEvaluationMonitor

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


Constructor Summary
ChunkEvaluationErrorListener()
          Creates a listener that will print to System.err
ChunkEvaluationErrorListener(OutputStream outputStream)
          Creates a listener that will print to a given OutputStream
 
Method Summary
 void missclassified(ChunkSample reference, ChunkSample 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

ChunkEvaluationErrorListener

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


ChunkEvaluationErrorListener

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

Method Detail

missclassified

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


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