|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.research.parallel.TokenScorePruner
Prunes an ActiveList of ParallelTokens based on their scores.
Field Summary | |
static java.lang.String |
PROP_ABSOLUTE_BEAM_WIDTH
|
static int |
PROP_ABSOLUTE_BEAM_WIDTH_DEFAULT
|
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_LOG_MATH
Sphinx property that defines the name of the logmath to be used by this search manager. |
static java.lang.String |
PROP_RELATIVE_BEAM_WIDTH
|
static double |
PROP_RELATIVE_BEAM_WIDTH_DEFAULT
|
Constructor Summary | |
TokenScorePruner()
|
Method Summary | |
void |
allocate()
Allocates resources necessary for this pruner |
void |
deallocate()
Deallocates resources necessary for this pruner |
int |
getAbsoluteBeamWidth()
Returns the absolute beam width of this TokenScorePruner. |
java.lang.String |
getName()
Retrieves the name for this configurable component |
float |
getRelativeBeamWidth()
Returns the relative beam width (in the linear domain) of this TokenScorePruner |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component has new data. |
ActiveList |
prune(ActiveList activeList)
Prunes the set of tokens in the given ActiveList. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
void |
setAbsoluteBeamWidth(int absoluteBeamWidth)
Sets the absolute beam width of this TokenScorePruner |
void |
setRelativeBeamWidth(float relativeBeamWidth)
Sets the relative beam width (log domain) of this TokenScorePruner. |
void |
startRecognition()
Starts the pruner |
void |
stopRecognition()
Performs post-recognition cleanup. |
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_ABSOLUTE_BEAM_WIDTH
public static final int PROP_ABSOLUTE_BEAM_WIDTH_DEFAULT
public static final java.lang.String PROP_RELATIVE_BEAM_WIDTH
public static final double PROP_RELATIVE_BEAM_WIDTH_DEFAULT
public static final java.lang.String PROP_LOG_MATH
public static final java.lang.String PROP_ACTIVE_LIST_FACTORY
Constructor Detail |
public TokenScorePruner()
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 ActiveList prune(ActiveList activeList)
prune
in interface Pruner
activeList
- a activeList of tokens
public int getAbsoluteBeamWidth()
public void setAbsoluteBeamWidth(int absoluteBeamWidth)
absoluteBeamWidth
- the absolute beam widthpublic float getRelativeBeamWidth()
public void setRelativeBeamWidth(float relativeBeamWidth)
relativeBeamWidth
- the relative beam width in log domainpublic void startRecognition()
startRecognition
in interface Pruner
public void stopRecognition()
stopRecognition
in interface Pruner
public void allocate()
allocate
in interface Pruner
public void deallocate()
deallocate
in interface Pruner
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 |