edu.cmu.sphinx.research.parallel
Class FeatureStream

java.lang.Object
  extended byedu.cmu.sphinx.research.parallel.FeatureStream
All Implemented Interfaces:
Configurable

public class FeatureStream
extends java.lang.Object
implements Configurable

Implements a feature stream used in parallel decoding. A feature stream describes the type of features that are generated, so it is represented by the front end that generates the features, and the acoustic model that should be used to decode those features.

Since the parallel decoder uses information from multiple feature streams for decoding, the eta value of the feature stream represents the relative weight that is applied for the scores from each feature stream.

To allow stream-specific pruning, each feature stream maintains its own active list, which is where tokens of that particular stream should be stored.


Field Summary
static java.lang.String PROP_ACOUSTIC_MODEL
          Property for the acoustic model of this feature stream.
static java.lang.String PROP_ETA
          Property for the eta value of this feature stream.
static float PROP_ETA_DEFAULT
          Default value of PROP_ETA.
static java.lang.String PROP_FRONT_END
          Property for the front end of this feature stream.
 
Constructor Summary
FeatureStream()
           
 
Method Summary
 void freeAcousticModel()
          Frees the acoustic model.
 AcousticModel getAcousticModel()
          Returns the acoustic model of this feature stream.
 ActiveList getActiveList()
          Returns the active list
 float getEta()
          Returns the eta value of this FeatureStream.
 FrontEnd getFrontEnd()
          Returns the front end of this feature stream.
 java.lang.String getName()
          Returns the name of this FeatureStream.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component has new data.
 void register(java.lang.String name, Registry registry)
          Register my properties.
 void setActiveList(ActiveList list)
          Sets the active list
 void setEta(float eta)
          Sets the eta value of this FeatureStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ACOUSTIC_MODEL

public static final java.lang.String PROP_ACOUSTIC_MODEL
Property for the acoustic model of this feature stream.

See Also:
Constant Field Values

PROP_FRONT_END

public static final java.lang.String PROP_FRONT_END
Property for the front end of this feature stream.

See Also:
Constant Field Values

PROP_ETA

public static final java.lang.String PROP_ETA
Property for the eta value of this feature stream.

See Also:
Constant Field Values

PROP_ETA_DEFAULT

public static final float PROP_ETA_DEFAULT
Default value of PROP_ETA.

See Also:
Constant Field Values
Constructor Detail

FeatureStream

public FeatureStream()
Method Detail

register

public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Description copied from interface: Configurable
Register my properties. This method is called once early in the time of the component, shortly after the component is constructed. This component should register any configuration properties that it needs to register. If this configurable extends another configurable, super.register should also be called

Specified by:
register in interface Configurable
Parameters:
name - the name of the component
registry - the registry for this component
Throws:
PropertyException

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component has new data. The component should first validate the data. If it is bad the component should return false. If the data is good, the component should record the the data internally and return true.

Specified by:
newProperties in interface Configurable
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

getName

public java.lang.String getName()
Returns the name of this FeatureStream.

Specified by:
getName in interface Configurable
Returns:
the name of this FeatureStream

getAcousticModel

public AcousticModel getAcousticModel()
Returns the acoustic model of this feature stream.

Returns:
the acoustic model of this feature stream

getFrontEnd

public FrontEnd getFrontEnd()
Returns the front end of this feature stream.

Returns:
the front end of this feature stream

getEta

public float getEta()
Returns the eta value of this FeatureStream.

Returns:
the eta value of this FeatureStream

getActiveList

public ActiveList getActiveList()
Returns the active list

Returns:
the active list

freeAcousticModel

public void freeAcousticModel()
Frees the acoustic model.


setEta

public void setEta(float eta)
Sets the eta value of this FeatureStream

Parameters:
eta - the eta value

setActiveList

public void setActiveList(ActiveList list)
Sets the active list

Parameters:
list - the active list