public class MaxScoreNormalizer extends java.lang.Object implements ScoreNormalizer
Constructor and Description |
---|
MaxScoreNormalizer() |
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.
|
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.