edu.cmu.sphinx.decoder.pruner
Interface Pruner

All Superinterfaces:
Configurable
All Known Implementing Classes:
NullPruner, SimplePruner, TokenScorePruner

public interface Pruner
extends Configurable

Provides a mechanism for pruning a set of StateTokens


Method Summary
 void allocate()
          Allocates resources necessary for this pruner
 void deallocate()
          Deallocates resources necessary for this pruner
 ActiveList prune(ActiveList stateTokenList)
          prunes the given set of states
 void startRecognition()
          Starts the pruner
 void stopRecognition()
          Performs post-recognition cleanup.
 
Methods inherited from interface edu.cmu.sphinx.util.props.Configurable
getName, newProperties, register
 

Method Detail

startRecognition

public void startRecognition()
Starts the pruner


prune

public ActiveList prune(ActiveList stateTokenList)
prunes the given set of states

Parameters:
stateTokenList - a list containing StateToken objects to be scored
Returns:
the pruned list, (may be the sample list as stateTokenList)

stopRecognition

public void stopRecognition()
Performs post-recognition cleanup.


allocate

public void allocate()
Allocates resources necessary for this pruner


deallocate

public void deallocate()
Deallocates resources necessary for this pruner