|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.scorer.ThreadedAcousticScorer
An acoustic scorer that breaks the scoring up into a configurable number of separate threads. All scores are maintained in LogMath log base
Field Summary | |
static java.lang.String |
PROP_ACOUSTIC_GAIN
A sphinx property that controls the amount of acoustic gain. |
static float |
PROP_ACOUSTIC_GAIN_DEFAULT
The default value for the PROP_ACOUSTIC_LOOKAHEAD_FRAMES property. |
static java.lang.String |
PROP_FRONTEND
Property the defines the frontend to retrieve features from for scoring |
static java.lang.String |
PROP_IS_CPU_RELATIVE
A sphinx property name that controls whether the number of available CPUs on the system is used when determining the number of threads to use for scoring. |
static boolean |
PROP_IS_CPU_RELATIVE_DEFAULT
The default value for PROP_IS_CPU_RELATIVE. |
static java.lang.String |
PROP_MIN_SCOREABLES_PER_THREAD
A Sphinx Property name that controls the minimum number of scoreables sent to a thread. |
static int |
PROP_MIN_SCOREABLES_PER_THREAD_DEFAULT
The default value for PROP_MIN_SCOREABLES_PER_THREAD. |
static java.lang.String |
PROP_NUM_THREADS
A SphinxProperty name that controls the number of threads that are used to score hmm states. |
static int |
PROP_NUM_THREADS_DEFAULT
The default value for PROP_NUM_THREADS. |
static java.lang.String |
PROP_SCOREABLES_KEEP_FEATURE
A SphinxProperty specifying whether the scoreables should keep a reference to the scored features. |
static boolean |
PROP_SCOREABLES_KEEP_FEATURE_DEFAULT
The default value for PROP_SCOREABLES_KEEP_FEATURE. |
Constructor Summary | |
ThreadedAcousticScorer()
|
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()
Initializes 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_NUM_THREADS
public static final int PROP_NUM_THREADS_DEFAULT
public static final java.lang.String PROP_IS_CPU_RELATIVE
public static final boolean PROP_IS_CPU_RELATIVE_DEFAULT
public static final java.lang.String PROP_MIN_SCOREABLES_PER_THREAD
public static final int PROP_MIN_SCOREABLES_PER_THREAD_DEFAULT
public static final java.lang.String PROP_SCOREABLES_KEEP_FEATURE
public static final boolean PROP_SCOREABLES_KEEP_FEATURE_DEFAULT
public static final java.lang.String PROP_ACOUSTIC_GAIN
public static final float PROP_ACOUSTIC_GAIN_DEFAULT
Constructor Detail |
public ThreadedAcousticScorer()
Method Detail |
public void allocate() throws java.io.IOException
AcousticScorer
allocate
in interface AcousticScorer
java.io.IOException
public void deallocate()
AcousticScorer
deallocate
in interface AcousticScorer
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |