public class WordActiveListFactory extends ActiveListFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_MAX_FILLER_WORDS
property that sets the max filler words allowed in the beam.
|
static java.lang.String |
PROP_MAX_PATHS_PER_WORD
property that sets the max paths for a single word.
|
absoluteBeamWidth, logMath, logRelativeBeamWidth, PROP_ABSOLUTE_BEAM_WIDTH, PROP_RELATIVE_BEAM_WIDTH, PROP_STRICT_PRUNING| Constructor and Description |
|---|
WordActiveListFactory() |
WordActiveListFactory(int absoluteBeamWidth,
double relativeBeamWidth,
int maxPathsPerWord,
int maxFiller)
Create factory for word active list
|
| Modifier and Type | Method and Description |
|---|---|
ActiveList |
newInstance()
Creates a new active list of a particular type
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
@S4Integer(defaultValue=0) public static final java.lang.String PROP_MAX_PATHS_PER_WORD
@S4Integer(defaultValue=1) public static final java.lang.String PROP_MAX_FILLER_WORDS
public WordActiveListFactory(int absoluteBeamWidth,
double relativeBeamWidth,
int maxPathsPerWord,
int maxFiller)
absoluteBeamWidth - beam for absolute pruningrelativeBeamWidth - beam for relative pruningmaxPathsPerWord - maximum number of path to keep per wordmaxFiller - maximum number of fillerspublic WordActiveListFactory()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class ActiveListFactoryps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public ActiveList newInstance()
ActiveListFactorynewInstance in class ActiveListFactory