public abstract class ActiveListFactory extends java.lang.Object implements Configurable
| Modifier and Type | Field and Description |
|---|---|
protected int |
absoluteBeamWidth |
protected LogMath |
logMath |
protected float |
logRelativeBeamWidth |
static java.lang.String |
PROP_ABSOLUTE_BEAM_WIDTH
property that sets the desired (or target) size for this active list.
|
static java.lang.String |
PROP_RELATIVE_BEAM_WIDTH
Property that sets the minimum score relative to the maximum score in the list for pruning.
|
static java.lang.String |
PROP_STRICT_PRUNING
Property that indicates whether or not the active list will implement 'strict pruning'.
|
| Constructor and Description |
|---|
ActiveListFactory() |
ActiveListFactory(int absoluteBeamWidth,
double relativeBeamWidth) |
| Modifier and Type | Method and Description |
|---|---|
abstract 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=-1) public static final java.lang.String PROP_ABSOLUTE_BEAM_WIDTH
@S4Double(defaultValue=1.0E-80) public static final java.lang.String PROP_RELATIVE_BEAM_WIDTH
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_STRICT_PRUNING
protected LogMath logMath
protected int absoluteBeamWidth
protected float logRelativeBeamWidth
public ActiveListFactory(int absoluteBeamWidth,
double relativeBeamWidth)
absoluteBeamWidth - beam for absolute pruningrelativeBeamWidth - beam for relative pruningpublic ActiveListFactory()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface Configurableps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public abstract ActiveList newInstance()