info.ephyra.answerselection.filters
Class HitPositionFilter
java.lang.Object
info.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.HitPositionFilter
public class HitPositionFilter
- extends Filter
Scores the results according to their hit positions. The score of each
result is modified by scale * hitposition, where the constant
scale specifies a scaling factor that should be negative.
This class extends the class Filter.
- Version:
- 2005-09-16
- Author:
- Nico Schlaefer
|
Field Summary |
private static float |
scale
Scaling factor to adjust the effect of this filter. |
| Methods inherited from class info.ephyra.answerselection.filters.Filter |
apply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scale
private static final float scale
- Scaling factor to adjust the effect of this filter. Should be negative
since a lower hit position should result in a higher score.
- See Also:
- Constant Field Values
HitPositionFilter
public HitPositionFilter()
apply
public Result apply(Result result)
- Filters a single
Result object.
- Overrides:
apply in class Filter
- Parameters:
result - result to filter
- Returns:
- result with manipulated score