org.cogroo.cmdline.chunker2
Class DetailedFMeasureForSizeListener<T>

java.lang.Object
  extended by org.cogroo.cmdline.chunker2.DetailedFMeasureForSizeListener<T>
All Implemented Interfaces:
opennlp.tools.util.eval.EvaluationMonitor<T>
Direct Known Subclasses:
ChunkerDetailedFMeasureSizeListener

public abstract class DetailedFMeasureForSizeListener<T>
extends Object
implements opennlp.tools.util.eval.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
DetailedFMeasureForSizeListener()
           
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailedFMeasureForSizeListener

public DetailedFMeasureForSizeListener()
Method Detail

correctlyClassified

public void correctlyClassified(T reference,
                                T prediction)
Specified by:
correctlyClassified in interface opennlp.tools.util.eval.EvaluationMonitor<T>

missclassified

public void missclassified(T reference,
                           T prediction)
Specified by:
missclassified in interface opennlp.tools.util.eval.EvaluationMonitor<T>

createReport

public String createReport()

createReport

public String createReport(Locale locale)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 CoGrOO. All Rights Reserved.