info.ephyra.answerselection.filters
Class ReverseScoreSorterFilter

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

public class ReverseScoreSorterFilter
extends Filter

The ReverseScoreSorterFilter sorts the results by their scores in ascending order. The sort is guaranteed to be stable.

This class extends the class Filter.

Version:
2007-05-24
Author:
Nico Schlaefer

Constructor Summary
ReverseScoreSorterFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Sorts the results by their scores 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

ReverseScoreSorterFilter

public ReverseScoreSorterFilter()
Method Detail

apply

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

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