info.ephyra.answerselection.filters
Class ResultLengthSorterFilter

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

public class ResultLengthSorterFilter
extends Filter

The ResultLengthSorterFilter sorts the results by the lengths of the answer strings in ascending order.

This class extends the class Filter.

Version:
2008-02-15
Author:
Nico Schlaefer

Constructor Summary
ResultLengthSorterFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Sorts the results by the lengths of the answer strings 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

ResultLengthSorterFilter

public ResultLengthSorterFilter()
Method Detail

apply

public Result[] apply(Result[] results)
Sorts the results by the lengths of the answer strings in ascending order.

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