info.ephyra.answerselection.filters
Class ScoreSorterFilter

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

public class ScoreSorterFilter
extends Filter

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

This class extends the class Filter.

Version:
2007-05-24
Author:
Nico Schlaefer

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

ScoreSorterFilter

public ScoreSorterFilter()
Method Detail

apply

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

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