|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.flat.FlatLinguist
public class FlatLinguist
A simple form of the linguist.
The flat linguist takes a Grammar graph (as returned by the underlying, configurable grammar), and generates a search graph for this grammar. It makes the following simplifying assumptions:
Field Summary | |
---|---|
static java.lang.String |
PROP_ACOUSTIC_MODEL
A sphinx property used to define the acoustic model to use when building the search graph |
static java.lang.String |
PROP_ADD_OUT_OF_GRAMMAR_BRANCH
Sphinx property that specifies whether to add a branch for detecting out-of-grammar utterances. |
static boolean |
PROP_ADD_OUT_OF_GRAMMAR_BRANCH_DEFAULT
Default value of PROP_ADD_OUT_OF_GRAMMAR_BRANCH. |
static java.lang.String |
PROP_DUMP_GSTATES
Sphinx property used to determine whether or not the gstates are dumped. |
static boolean |
PROP_DUMP_GSTATES_DEFAULT
The default value for the PROP_DUMP_GSTATES property |
static java.lang.String |
PROP_GRAMMAR
A sphinx property used to define the grammar to use when building the search graph |
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 |
PROP_OUT_OF_GRAMMAR_PROBABILITY
Sphinx property for the probability of entering the out-of-grammar branch. |
static double |
PROP_OUT_OF_GRAMMAR_PROBABILITY_DEFAULT
The default value for PROP_OUT_OF_GRAMMAR_PROBABILITY. |
static java.lang.String |
PROP_PHONE_INSERTION_PROBABILITY
Sphinx property for the probability of inserting a CI phone in the out-of-grammar ci phone loop |
static double |
PROP_PHONE_INSERTION_PROBABILITY_DEFAULT
Default value for PROP_PHONE_INSERTION_PROBABILITY |
static java.lang.String |
PROP_PHONE_LOOP_ACOUSTIC_MODEL
Sphinx property for the acoustic model used for the CI phone loop. |
static java.lang.String |
PROP_SHOW_COMPILATION_PROGRESS
Property to control whether compilation progress is displayed on stdout. |
static java.lang.String |
PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS
Property that controls whether word probabilities are spread across all pronunciations. |
static java.lang.String |
PROP_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 | |
---|---|
FlatLinguist()
|
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. |
java.lang.String |
getName()
|
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 PROP_GRAMMAR
@S4Component(type=UnitManager.class) public static final java.lang.String PROP_UNIT_MANAGER
@S4Component(type=AcousticModel.class) public static final java.lang.String PROP_ACOUSTIC_MODEL
@S4Component(type=LogMath.class) public static final java.lang.String PROP_LOG_MATH
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_DUMP_GSTATES
public static final boolean PROP_DUMP_GSTATES_DEFAULT
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_ADD_OUT_OF_GRAMMAR_BRANCH
public static final boolean PROP_ADD_OUT_OF_GRAMMAR_BRANCH_DEFAULT
@S4Double(defaultValue=1.0) public static final java.lang.String PROP_OUT_OF_GRAMMAR_PROBABILITY
@S4Component(type=AcousticModel.class) public static final java.lang.String PROP_PHONE_LOOP_ACOUSTIC_MODEL
@S4Double(defaultValue=1.0) public static final java.lang.String PROP_PHONE_INSERTION_PROBABILITY
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SHOW_COMPILATION_PROGRESS
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS
public static final double PROP_PHONE_INSERTION_PROBABILITY_DEFAULT
public static final double PROP_OUT_OF_GRAMMAR_PROBABILITY_DEFAULT
Constructor Detail |
---|
public FlatLinguist()
Method Detail |
---|
public SearchGraph getSearchGraph()
getSearchGraph
in interface Linguist
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()
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 |