public class BackgroundModelNormalizer extends java.lang.Object implements ScoreNormalizer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE_LIST_PROVIDER
The active list provider used to determined the best token for normalization.
|
Constructor and Description |
---|
BackgroundModelNormalizer() |
BackgroundModelNormalizer(SimpleBreadthFirstSearchManager activeListProvider) |
Modifier and Type | Method and Description |
---|---|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
Scoreable |
normalize(java.util.List<? extends Scoreable> scoreableList,
Scoreable bestToken)
Normalizes the scores of a set of Tokens.
|
@S4Component(type=SimpleBreadthFirstSearchManager.class, mandatory=false) public static final java.lang.String ACTIVE_LIST_PROVIDER
public BackgroundModelNormalizer()
public BackgroundModelNormalizer(SimpleBreadthFirstSearchManager activeListProvider)
activeListProvider
- The active list provider used to determined the best token for normalization. If this reference is not defined no
normalization will be applied.public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public Scoreable normalize(java.util.List<? extends Scoreable> scoreableList, Scoreable bestToken)
ScoreNormalizer
normalize
in interface ScoreNormalizer
scoreableList
- The set of scores to be normalizedbestToken
- The best scoring Token of the above mentioned list. Although not strictly necessary it's
included because of convenience reasons and to reduce computational overhead.Token
s have been normalized. In most cases normalization won't
change the order but to keep the API open for any kind of approach it seemed reasonable to include this.