info.ephyra.answerselection.filters
Class HitPositionSorterFilter

java.lang.Object
  extended by info.ephyra.answerselection.filters.Filter
      extended by info.ephyra.answerselection.filters.HitPositionSorterFilter

public class HitPositionSorterFilter
extends Filter

The HitPositionSorterFilter sorts the results by their hit positions in ascending order.

This class extends the class Filter.

Version:
2008-02-15
Author:
Nico Schlaefer

Constructor Summary
HitPositionSorterFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Sorts the results by their hit positions in ascending order.
 
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
 

Constructor Detail

HitPositionSorterFilter

public HitPositionSorterFilter()
Method Detail

apply

public Result[] apply(Result[] results)
Sorts the results by their hit positions in ascending order.

Overrides:
apply in class Filter
Parameters:
results - array of Result objects
Returns:
sorted array of Result objects