edu.cmu.sphinx.instrumentation
Class BestPathAccuracyTracker

java.lang.Object
  extended by edu.cmu.sphinx.instrumentation.AccuracyTracker
      extended by edu.cmu.sphinx.instrumentation.BestPathAccuracyTracker
All Implemented Interfaces:
ResultListener, Monitor, Resetable, StateListener, Configurable, java.util.EventListener

public class BestPathAccuracyTracker
extends AccuracyTracker

Tracks and reports recognition accuracy based upon the highest scoring path in a Result.


Field Summary
static java.lang.String PROP_SHOW_FULL_PATH
          A sphinx property that define whether the full token path is displayed
static boolean PROP_SHOW_FULL_PATH_DEFAULT
          The default setting of PROP_SHOW_FULL_PATH
 
Fields inherited from class edu.cmu.sphinx.instrumentation.AccuracyTracker
PROP_RECOGNIZER, PROP_SHOW_ALIGNED_RESULTS, PROP_SHOW_ALIGNED_RESULTS_DEFAULT, PROP_SHOW_DETAILS, PROP_SHOW_DETAILS_DEFAULT, PROP_SHOW_RAW_RESULTS, PROP_SHOW_RAW_RESULTS_DEFAULT, PROP_SHOW_RESULTS, PROP_SHOW_RESULTS_DEFAULT, PROP_SHOW_SUMMARY, PROP_SHOW_SUMMARY_DEFAULT
 
Constructor Summary
BestPathAccuracyTracker()
           
 
Method Summary
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 void newResult(Result result)
          Method called when a new result is generated
 
Methods inherited from class edu.cmu.sphinx.instrumentation.AccuracyTracker
getAligner, getName, reset, statusChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SHOW_FULL_PATH

@S4Boolean(defaultValue=false)
public static final java.lang.String PROP_SHOW_FULL_PATH
A sphinx property that define whether the full token path is displayed

See Also:
Constant Field Values

PROP_SHOW_FULL_PATH_DEFAULT

public static final boolean PROP_SHOW_FULL_PATH_DEFAULT
The default setting of PROP_SHOW_FULL_PATH

See Also:
Constant Field Values
Constructor Detail

BestPathAccuracyTracker

public BestPathAccuracyTracker()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Overrides:
newProperties in class AccuracyTracker
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

newResult

public void newResult(Result result)
Description copied from interface: ResultListener
Method called when a new result is generated

Specified by:
newResult in interface ResultListener
Specified by:
newResult in class AccuracyTracker
Parameters:
result - the new result