info.ephyra.answerselection.filters
Class NormalizedScoreSorterFilter

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

public class NormalizedScoreSorterFilter
extends Filter

The NormalizedScoreSorterFilter sorts the results by their normalized 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
NormalizedScoreSorterFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Sorts the results by their normalized 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

NormalizedScoreSorterFilter

public NormalizedScoreSorterFilter()
Method Detail

apply

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

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