info.ephyra.answerselection.filters
Class HitPositionFilter

java.lang.Object
  extended by info.ephyra.answerselection.filters.Filter
      extended by 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.
 
Constructor Summary
HitPositionFilter()
           
 
Method Summary
 Result apply(Result result)
          Filters a single Result object.
 
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
 

Field Detail

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
Constructor Detail

HitPositionFilter

public HitPositionFilter()
Method Detail

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