Modifier and Type | Field and Description |
---|---|
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'.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Token token)
Adds the given token to the list, keeping track of the lowest scoring token
|
float |
getBeamThreshold()
gets the beam threshold best upon the best scoring token
|
float |
getBestScore()
gets the best score in the list
|
Token |
getBestToken()
Gets the best scoring token for this active list
|
java.util.List<Token> |
getTokens()
Gets the list of all tokens
|
ActiveList |
newInstance()
Creates a new empty version of this active list with the same general properties.
|
ActiveList |
purge()
Purges the active list of excess members returning a (potentially new) active list
|
void |
setBestToken(Token token)
Sets the best scoring token for this active list
|
int |
size()
Returns the size of this list
|
@S4Integer(defaultValue=2000) static final java.lang.String PROP_ABSOLUTE_BEAM_WIDTH
@S4Double(defaultValue=0.0) static final java.lang.String PROP_RELATIVE_BEAM_WIDTH
@S4Boolean(defaultValue=true) static final java.lang.String PROP_STRICT_PRUNING
void add(Token token)
token
- the token to addActiveList purge()
int size()
java.util.List<Token> getTokens()
float getBeamThreshold()
float getBestScore()
void setBestToken(Token token)
token
- the best scoring tokenToken getBestToken()
ActiveList newInstance()