edu.cmu.sphinx.instrumentation
Class AccuracyTracker

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

public abstract class AccuracyTracker
extends java.lang.Object
implements ResultListener, Resetable, StateListener, Monitor

Tracks and reports recognition accuracy


Field Summary
static java.lang.String PROP_RECOGNIZER
          A Sphinx property that defines which recognizer to monitor
static java.lang.String PROP_SHOW_ALIGNED_RESULTS
          A sphinx property that define whether recognition results should be displayed.
static boolean PROP_SHOW_ALIGNED_RESULTS_DEFAULT
          The default setting of PROP_SHOW_ALIGNED_RESULTS
static java.lang.String PROP_SHOW_DETAILS
          A sphinx property that define whether detailed accuracy information is displayed
static boolean PROP_SHOW_DETAILS_DEFAULT
          The default setting of PROP_SHOW_DETAILS
static java.lang.String PROP_SHOW_RAW_RESULTS
          A sphinx property that define whether recognition results should be displayed.
static boolean PROP_SHOW_RAW_RESULTS_DEFAULT
          The default setting of PROP_SHOW_RAW_RESULTS
static java.lang.String PROP_SHOW_RESULTS
          A sphinx property that define whether recognition results should be displayed.
static boolean PROP_SHOW_RESULTS_DEFAULT
          The default setting of PROP_SHOW_DETAILS
static java.lang.String PROP_SHOW_SUMMARY
          A sphinx property that define whether summary accuracy information is displayed
static boolean PROP_SHOW_SUMMARY_DEFAULT
          The default setting of PROP_SHOW_SUMMARY
 
Constructor Summary
AccuracyTracker()
           
 
Method Summary
 NISTAlign getAligner()
          Retrieves the aligner used to track the accuracy stats
 java.lang.String getName()
           
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
abstract  void newResult(Result result)
          Method called when a new result is generated
 void reset()
          Resets this component.
 void statusChanged(RecognizerState status)
          Called when the status has changed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_RECOGNIZER

@S4Component(type=Recognizer.class)
public static final java.lang.String PROP_RECOGNIZER
A Sphinx property that defines which recognizer to monitor

See Also:
Constant Field Values

PROP_SHOW_SUMMARY

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_SUMMARY
A sphinx property that define whether summary accuracy information is displayed

See Also:
Constant Field Values

PROP_SHOW_SUMMARY_DEFAULT

public static final boolean PROP_SHOW_SUMMARY_DEFAULT
The default setting of PROP_SHOW_SUMMARY

See Also:
Constant Field Values

PROP_SHOW_DETAILS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_DETAILS
A sphinx property that define whether detailed accuracy information is displayed

See Also:
Constant Field Values

PROP_SHOW_DETAILS_DEFAULT

public static final boolean PROP_SHOW_DETAILS_DEFAULT
The default setting of PROP_SHOW_DETAILS

See Also:
Constant Field Values

PROP_SHOW_RESULTS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_RESULTS
A sphinx property that define whether recognition results should be displayed.

See Also:
Constant Field Values

PROP_SHOW_RESULTS_DEFAULT

public static final boolean PROP_SHOW_RESULTS_DEFAULT
The default setting of PROP_SHOW_DETAILS

See Also:
Constant Field Values

PROP_SHOW_ALIGNED_RESULTS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_ALIGNED_RESULTS
A sphinx property that define whether recognition results should be displayed.

See Also:
Constant Field Values

PROP_SHOW_ALIGNED_RESULTS_DEFAULT

public static final boolean PROP_SHOW_ALIGNED_RESULTS_DEFAULT
The default setting of PROP_SHOW_ALIGNED_RESULTS

See Also:
Constant Field Values

PROP_SHOW_RAW_RESULTS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_RAW_RESULTS
A sphinx property that define whether recognition results should be displayed.

See Also:
Constant Field Values

PROP_SHOW_RAW_RESULTS_DEFAULT

public static final boolean PROP_SHOW_RAW_RESULTS_DEFAULT
The default setting of PROP_SHOW_RAW_RESULTS

See Also:
Constant Field Values
Constructor Detail

AccuracyTracker

public AccuracyTracker()
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
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

reset

public void reset()
Description copied from interface: Resetable
Resets this component. Typically this is for components that keep track of statistics

Specified by:
reset in interface Resetable

getName

public java.lang.String getName()

getAligner

public NISTAlign getAligner()
Retrieves the aligner used to track the accuracy stats

Returns:
the aligner

newResult

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

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

statusChanged

public void statusChanged(RecognizerState status)
Description copied from interface: StateListener
Called when the status has changed.

Specified by:
statusChanged in interface StateListener
Parameters:
status - the new status