|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.scorer.SimpleAcousticScorer
A Simple acoustic scorer. a certain number of frames have been processed Note that all scores are maintained in LogMath log base.
Field Summary | |
static java.lang.String |
PROP_FRONTEND
Property the defines the frontend to retrieve features from for scoring |
static java.lang.String |
PROP_NORMALIZE_SCORES
Propertry that defines whether scores are normalized or not |
static boolean |
PROP_NORMALIZE_SCORES_DEFAULT
Default value for PROP_NORMALIZE_SCORES |
Constructor Summary | |
SimpleAcousticScorer()
|
Method Summary | |
void |
allocate()
Allocates resources for this scorer |
Scoreable |
calculateScores(java.util.List scoreableList)
Scores the given set of states |
void |
deallocate()
Deallocates resouces for this scorer |
java.lang.String |
getName()
Retrieves the name for this configurable component |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component has new data. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
void |
startRecognition()
Starts the scorer |
void |
stopRecognition()
Performs post-recognition cleanup. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_FRONTEND
public static final java.lang.String PROP_NORMALIZE_SCORES
public static final boolean PROP_NORMALIZE_SCORES_DEFAULT
Constructor Detail |
public SimpleAcousticScorer()
Method Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
name
- the name of the componentregistry
- the registry for this component
PropertyException
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public java.lang.String getName()
Configurable
getName
in interface Configurable
public void startRecognition()
startRecognition
in interface AcousticScorer
public Scoreable calculateScores(java.util.List scoreableList)
calculateScores
in interface AcousticScorer
scoreableList
- a list containing scoreable objects to
be scored
public void stopRecognition()
stopRecognition
in interface AcousticScorer
public void allocate() throws java.io.IOException
AcousticScorer
allocate
in interface AcousticScorer
java.io.IOException
public void deallocate()
AcousticScorer
deallocate
in interface AcousticScorer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |