|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager
public class WordPruningBreadthFirstSearchManager
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, stopRecognition
should be called.
Field Summary | |
---|---|
static java.lang.String |
PROP_ACOUSTIC_LOOKAHEAD_FRAMES
A sphinx property that controls the amount of simple acoustic lookahead performed. |
static java.lang.String |
PROP_ACTIVE_LIST_MANAGER
Sphinx property that defines the type of active list to use |
static java.lang.String |
PROP_BUILD_WORD_LATTICE
Sphinx property that specifies whether to build a word lattice. |
static java.lang.String |
PROP_CHECK_STATE_ORDER
Sphinx property for checking if the order of states is valid. |
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 java.lang.String |
PROP_KEEP_ALL_TOKENS
A sphinx property that controls whether or not we keep all tokens. |
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_MAX_LATTICE_EDGES
Sphinx property that specifies the maximum lattice edges |
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_BEAM_WIDTH
Sphinx4 property that specifies the relative beam width |
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. |
Constructor Summary | |
---|---|
WordPruningBreadthFirstSearchManager()
|
Method Summary | |
---|---|
void |
allocate()
Allocates the resources necessary for this search. |
void |
deallocate()
Deallocates resources necessary for this search. |
ActiveList |
getActiveList()
Returns the ActiveList. |
int |
getCurrentFrameNumber()
Returns the current frame number. |
Timer |
getGrowTimer()
Returns the Timer for growing. |
LogMath |
getLogMath()
Returns the LogMath used. |
java.util.List<Token> |
getResultList()
Returns the result list. |
StatisticsVariable |
getTokensCreated()
Returns the tokensCreated StatisticsVariable. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
Result |
recognize(int nFrames)
Performs the recognition for the given number of frames. |
void |
setActiveList(ActiveList activeList)
Sets the ActiveList. |
void |
setResultList(java.util.List<Token> resultList)
Sets the result list. |
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 |
---|
@S4Component(type=Linguist.class) public static final java.lang.String PROP_LINGUIST
@S4Component(type=Pruner.class) public static final java.lang.String PROP_PRUNER
@S4Component(type=AcousticScorer.class) public static final java.lang.String PROP_SCORER
@S4Component(type=LogMath.class) public static final java.lang.String PROP_LOG_MATH
@S4Boolean(defaultValue=false) 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.
@S4Integer(defaultValue=0) public static final java.lang.String PROP_GROW_SKIP_INTERVAL
@S4Component(type=ActiveListManager.class) public static final java.lang.String PROP_ACTIVE_LIST_MANAGER
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_CHECK_STATE_ORDER
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_BUILD_WORD_LATTICE
@S4Integer(defaultValue=100) public static final java.lang.String PROP_MAX_LATTICE_EDGES
@S4Double(defaultValue=0.0) public static final java.lang.String PROP_ACOUSTIC_LOOKAHEAD_FRAMES
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_KEEP_ALL_TOKENS
@S4Double(defaultValue=0.0) public static final java.lang.String PROP_RELATIVE_BEAM_WIDTH
Constructor Detail |
---|
public WordPruningBreadthFirstSearchManager()
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 void allocate()
SearchManager
allocate
in interface SearchManager
public void deallocate()
SearchManager
deallocate
in interface SearchManager
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 LogMath getLogMath()
public ActiveList getActiveList()
public void setActiveList(ActiveList activeList)
activeList
- the new ActiveListpublic java.util.List<Token> getResultList()
public void setResultList(java.util.List<Token> resultList)
resultList
- the new result listpublic int getCurrentFrameNumber()
public Timer getGrowTimer()
public StatisticsVariable getTokensCreated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |