|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager
Provides the breadth first search. To perform recognition an application
should call initialize before recognition begins, and repeatedly call recognize
until Result.isFinal() returns true. Once a final result has been obtained,
terminate
should be called.
All scores and probabilities are maintained in the log math log domain.
Field Summary | |
static java.lang.String |
PROP_ACTIVE_LIST_FACTORY
Sphinx property that defines the name of the active list factory to be used by this search manager. |
static java.lang.String |
PROP_GROW_SKIP_INTERVAL
A sphinx property that controls the number of frames processed for every time the decode growth step is skipped. |
static int |
PROP_GROW_SKIP_INTERVAL_DEFAULT
The default value for the PROP_GROW_SKIP_INTERVAL property. |
static java.lang.String |
PROP_LINGUIST
Sphinx property that defines the name of the linguist to be used by this search manager. |
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_PRUNER
Sphinx property that defines the name of the linguist to be used by this search manager. |
static java.lang.String |
PROP_RELATIVE_WORD_BEAM_WIDTH
Property that sets the minimum score relative to the maximum score in the word list for pruning. |
static double |
PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT
The default value for the PROP_RELATIVE_WORD_BEAM_WIDTH property |
static java.lang.String |
PROP_SCORER
Sphinx property that defines the name of the scorer to be used by this search manager. |
static java.lang.String |
PROP_SHOW_TOKEN_COUNT
A sphinx property than, when set to true will cause the
recognizer to count up all the tokens in the active list after every
frame. |
static boolean |
PROP_SHOW_TOKEN_COUNT_DEFAULT
The default value for the PROP_SHOW_TOKEN_COUNT property |
static java.lang.String |
PROP_WANT_ENTRY_PRUNING
A sphinx property that controls whether or not relative beam pruning will be performed on the entry into a state. |
static boolean |
PROP_WANT_ENTRY_PRUNING_DEFAULT
The default value for the PROP_WANT_ENTRY_PRUNING property |
Constructor Summary | |
SimpleBreadthFirstSearchManager()
|
Method Summary | |
void |
allocate()
Allocates the resources necessary for this search. |
void |
deallocate()
Deallocates resources necessary for this search. |
int |
getCurrentFrameNumber()
Returns the current frame number. |
Timer |
getGrowTimer()
Returns the Timer for growing. |
java.lang.String |
getName()
Retrieves the name for this configurable component |
java.util.List |
getResultList()
Returns the result list. |
StatisticsVariable |
getTokensCreated()
Returns the tokensCreated StatisticsVariable. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component has new data. |
Result |
recognize(int nFrames)
Performs the recognition for the given number of frames. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
void |
startRecognition()
Called at the start of recognition. |
void |
stopRecognition()
Terminates a recognition |
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_LINGUIST
public static final java.lang.String PROP_PRUNER
public static final java.lang.String PROP_SCORER
public static final java.lang.String PROP_LOG_MATH
public static final java.lang.String PROP_ACTIVE_LIST_FACTORY
public static final java.lang.String PROP_SHOW_TOKEN_COUNT
true
will cause the
recognizer to count up all the tokens in the active list after every
frame.
public static final boolean PROP_SHOW_TOKEN_COUNT_DEFAULT
public static final java.lang.String PROP_RELATIVE_WORD_BEAM_WIDTH
public static final double PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT
public static final java.lang.String PROP_WANT_ENTRY_PRUNING
public static final boolean PROP_WANT_ENTRY_PRUNING_DEFAULT
public static final java.lang.String PROP_GROW_SKIP_INTERVAL
public static final int PROP_GROW_SKIP_INTERVAL_DEFAULT
Constructor Detail |
public SimpleBreadthFirstSearchManager()
Method Detail |
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 void startRecognition()
startRecognition
in interface SearchManager
public Result recognize(int nFrames)
recognize
in interface SearchManager
nFrames
- the number of frames to recognize
public void stopRecognition()
stopRecognition
in interface SearchManager
public java.util.List getResultList()
public int getCurrentFrameNumber()
public Timer getGrowTimer()
public StatisticsVariable getTokensCreated()
public void allocate() throws java.io.IOException
SearchManager
allocate
in interface SearchManager
java.io.IOException
public void deallocate()
SearchManager
deallocate
in interface SearchManager
public java.lang.String getName()
Configurable
getName
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |