|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.dflat.DynamicFlatLinguist
public class DynamicFlatLinguist
A simple form of the linguist. It makes the following simplifying assumptions: 1) Zero or one word per grammar node 2) No fan-in allowed ever 3) No composites (yet) 4) Only Unit, HMMState, and pronunciation states (and the initial/final grammar state are in the graph (no word, alternative or grammar states attached). 5) Only valid tranisitions (matching contexts) are allowed 6) No tree organization of units 7) Branching grammar states are allowed
This is a dynamic version of the flat linguist that is more efficient in terms of startup time and overall footprint Note that all probabilties are maintained in the log math domain
Field Summary | |
---|---|
static java.lang.String |
ACOUSTIC_MODEL
A sphinx property used to define the acoustic model to use when building the search graph |
static java.lang.String |
ADD_OUT_OF_GRAMMAR_BRANCH
Sphinx property that specifies whether to add a branch for detecting out-of-grammar utterances. |
static java.lang.String |
GRAMMAR
A sphinx property used to define the grammar to use when building the search graph |
static java.lang.String |
OUT_OF_GRAMMAR_PROBABILITY
Sphinx property for the probability of entering the out-of-grammar branch. |
static java.lang.String |
PHONE_INSERTION_PROBABILITY
Sphinx property for the probability of inserting a CI phone in the out-of-grammar ci phone loop |
static java.lang.String |
PHONE_LOOP_ACOUSTIC_MODEL
Sphinx property for the acoustic model to use to build the phone loop that detects out of grammar utterances. |
static java.lang.String |
PROP_LOG_MATH
Sphinx property that defines the name of the logmath to be used by this search manager. |
static java.lang.String |
UNIT_MANAGER
A sphinx property used to define the unit manager to use when building the search graph |
Fields inherited from interface edu.cmu.sphinx.linguist.Linguist |
---|
PROP_FILLER_INSERTION_PROBABILITY, PROP_LANGUAGE_WEIGHT, PROP_SILENCE_INSERTION_PROBABILITY, PROP_UNIT_INSERTION_PROBABILITY, PROP_WORD_INSERTION_PROBABILITY |
Constructor Summary | |
---|---|
DynamicFlatLinguist()
|
Method Summary | |
---|---|
void |
allocate()
Allocates the linguist. |
void |
deallocate()
Deallocates the linguist. |
LogMath |
getLogMath()
Returns the LogMath used. |
float |
getLogSilenceInsertionProbability()
Returns the log silence insertion probability. |
SearchGraph |
getSearchGraph()
Returns the search graph |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
void |
startRecognition()
Called before a recognition |
void |
stopRecognition()
Called after a recognition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@S4Component(type=Grammar.class) public static final java.lang.String GRAMMAR
@S4Component(type=UnitManager.class) public static final java.lang.String UNIT_MANAGER
@S4Component(type=AcousticModel.class) public static final java.lang.String ACOUSTIC_MODEL
@S4Boolean(defaultValue=false) public static final java.lang.String ADD_OUT_OF_GRAMMAR_BRANCH
@S4Double(defaultValue=1.0) public static final java.lang.String OUT_OF_GRAMMAR_PROBABILITY
@S4Double(defaultValue=1.0) public static final java.lang.String PHONE_INSERTION_PROBABILITY
@S4Component(type=AcousticModel.class) public static final java.lang.String PHONE_LOOP_ACOUSTIC_MODEL
@S4Component(type=LogMath.class) public static final java.lang.String PROP_LOG_MATH
Constructor Detail |
---|
public DynamicFlatLinguist()
Method Detail |
---|
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 SearchGraph getSearchGraph()
getSearchGraph
in interface Linguist
public void allocate() throws java.io.IOException
Linguist
allocate
in interface Linguist
java.io.IOException
- if an IO error occurspublic void deallocate()
Linguist
deallocate
in interface Linguist
public void startRecognition()
startRecognition
in interface Linguist
public void stopRecognition()
stopRecognition
in interface Linguist
public LogMath getLogMath()
public float getLogSilenceInsertionProbability()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |