|
|||||||||
| 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
The property used to define the acoustic model to use when building the search graph |
static java.lang.String |
PROP_ADD_OUT_OF_GRAMMAR_BRANCH
The property that specifies whether to add a branch for detecting out-of-grammar utterances. |
static java.lang.String |
PROP_DUMP_GSTATES
The property used to determine whether or not the gstates are dumped. |
static java.lang.String |
PROP_GRAMMAR
The property used to define the grammar to use when building the search graph |
static java.lang.String |
PROP_LOG_MATH
The property that defines the name of the logmath to be used by this search manager. |
static java.lang.String |
PROP_OUT_OF_GRAMMAR_PROBABILITY
The property for the probability of entering the out-of-grammar branch. |
static java.lang.String |
PROP_PHONE_INSERTION_PROBABILITY
The property for the probability of inserting a CI phone in the out-of-grammar ci phone loop |
static java.lang.String |
PROP_PHONE_LOOP_ACOUSTIC_MODEL
The 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 standard output. |
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
The 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()
|
|
FlatLinguist(AcousticModel acousticModel,
LogMath logMath,
Grammar grammar,
UnitManager unitManager,
double wordInsertionProbability,
double silenceInsertionProbability,
double fillerInsertionProbability,
double unitInsertionProbability,
float languageWeight,
boolean dumpGStates,
boolean showCompilationProgress,
boolean spreadWordProbabilitiesAcrossPronunciations,
boolean addOutOfGrammarBranch,
double outOfGrammarBranchProbability,
double phoneInsertionProbability,
AcousticModel phoneLoopAcousticModel)
|
|
| 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
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_ADD_OUT_OF_GRAMMAR_BRANCH
@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
| Constructor Detail |
|---|
public FlatLinguist(AcousticModel acousticModel,
LogMath logMath,
Grammar grammar,
UnitManager unitManager,
double wordInsertionProbability,
double silenceInsertionProbability,
double fillerInsertionProbability,
double unitInsertionProbability,
float languageWeight,
boolean dumpGStates,
boolean showCompilationProgress,
boolean spreadWordProbabilitiesAcrossPronunciations,
boolean addOutOfGrammarBranch,
double outOfGrammarBranchProbability,
double phoneInsertionProbability,
AcousticModel phoneLoopAcousticModel)
public FlatLinguist()
| Method Detail |
|---|
public SearchGraph getSearchGraph()
getSearchGraph in interface Linguist
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface Configurableps - 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 Linguistjava.io.IOException - if an IO error occurspublic void deallocate()
Linguist
deallocate in interface Linguistpublic void startRecognition()
startRecognition in interface Linguistpublic void stopRecognition()
stopRecognition in interface Linguistpublic LogMath getLogMath()
public float getLogSilenceInsertionProbability()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||