opennlp.tools.cmdline
Class DetailedFMeasureListener<T>

java.lang.Object
  extended by opennlp.tools.cmdline.DetailedFMeasureListener<T>
All Implemented Interfaces:
EvaluationMonitor<T>
Direct Known Subclasses:
ChunkerDetailedFMeasureListener, TokenNameFinderDetailedFMeasureListener

public abstract class DetailedFMeasureListener<T>
extends Object
implements EvaluationMonitor<T>

This listener will gather detailed information about the sample under evaluation and will allow detailed FMeasure for each outcome.

Note: Do not use this class, internal use only!


Constructor Summary
DetailedFMeasureListener()
           
 
Method Summary
protected abstract  Span[] asSpanArray(T sample)
           
 void correctlyClassified(T reference, T prediction)
           
 String createReport()
           
 String createReport(Locale locale)
           
 void missclassified(T reference, T prediction)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailedFMeasureListener

public DetailedFMeasureListener()
Method Detail

asSpanArray

protected abstract Span[] asSpanArray(T sample)

correctlyClassified

public void correctlyClassified(T reference,
                                T prediction)
Specified by:
correctlyClassified in interface EvaluationMonitor<T>

missclassified

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

createReport

public String createReport()

createReport

public String createReport(Locale locale)

toString

public String toString()
Overrides:
toString in class Object


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