public abstract class AccuracyTracker extends ConfigurableAdapter implements ResultListener, Resetable, StateListener, Monitor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_RECOGNIZER
The property that defines which recognizer to monitor
|
static java.lang.String |
PROP_SHOW_ALIGNED_RESULTS
The property that defines whether recognition results should be displayed.
|
static java.lang.String |
PROP_SHOW_DETAILS
The property that defines whether detailed accuracy information is displayed
|
static java.lang.String |
PROP_SHOW_RAW_RESULTS
The property that defines whether recognition results should be displayed.
|
static java.lang.String |
PROP_SHOW_RESULTS
The property that defines whether recognition results should be displayed.
|
static java.lang.String |
PROP_SHOW_SUMMARY
The property that defines whether summary accuracy information is displayed
|
logger| Constructor and Description |
|---|
AccuracyTracker() |
AccuracyTracker(Recognizer recognizer,
boolean showSummary,
boolean showDetails,
boolean showResults,
boolean showAlignedResults,
boolean showRawResults) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
showDetails(java.lang.String rawText)
Shows the complete details.
|
void |
statusChanged(Recognizer.State status)
Called when the status has changed.
|
initLogger, toString@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_SUMMARY
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_DETAILS
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_RESULTS
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_ALIGNED_RESULTS
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_RAW_RESULTS
public AccuracyTracker(Recognizer recognizer, boolean showSummary, boolean showDetails, boolean showResults, boolean showAlignedResults, boolean showRawResults)
public AccuracyTracker()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public void reset()
Resetablepublic java.lang.String getName()
getName in class ConfigurableAdapterConfigurable.public NISTAlign getAligner()
protected void showDetails(java.lang.String rawText)
rawText - the RAW resultpublic abstract void newResult(Result result)
ResultListenernewResult in interface ResultListenerresult - the new resultpublic void statusChanged(Recognizer.State status)
StateListenerstatusChanged in interface StateListenerstatus - the new status