|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.scorer.AbstractScorer
edu.cmu.sphinx.decoder.scorer.ThreadedAcousticScorer
public class 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_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 java.lang.String |
PROP_MIN_SCOREABLES_PER_THREAD
A Sphinx Property name that controls the minimum number of scoreables sent to a thread. |
static java.lang.String |
PROP_NUM_THREADS
A SphinxProperty name that controls the number of threads that are used to score hmm states. |
Fields inherited from class edu.cmu.sphinx.decoder.scorer.AbstractScorer |
---|
FEATURE_FRONTEND, SCORE_NORMALIZER |
Constructor Summary | |
---|---|
ThreadedAcousticScorer()
|
Method Summary | |
---|---|
void |
allocate()
Allocates resources for this scorer |
void |
deallocate()
Deallocates resouces for this scorer |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
Methods inherited from class edu.cmu.sphinx.decoder.scorer.AbstractScorer |
---|
calculateScores, startRecognition, stopRecognition, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@S4Integer(defaultValue=0) public static final java.lang.String PROP_NUM_THREADS
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_IS_CPU_RELATIVE
@S4Integer(defaultValue=10) public static final java.lang.String PROP_MIN_SCOREABLES_PER_THREAD
Constructor Detail |
---|
public ThreadedAcousticScorer()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class AbstractScorer
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public void allocate()
AcousticScorer
allocate
in interface AcousticScorer
allocate
in class AbstractScorer
public void deallocate()
AcousticScorer
deallocate
in interface AcousticScorer
deallocate
in class AbstractScorer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |