info.ephyra.answerselection.filters
Class CombineScoresFilter

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

public class CombineScoresFilter
extends Filter

Combines the extra scores of each Result and sets the main score to their sum.

This class extends the class Filter.

Version:
2008-02-10
Author:
Guido Sautter

Constructor Summary
CombineScoresFilter()
           
 
Method Summary
 Result apply(Result result)
          add all the extra scores of the specified result to its main score and return it.
 Result[] apply(Result[] results)
          Filters an array of Result objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombineScoresFilter

public CombineScoresFilter()
Method Detail

apply

public Result apply(Result result)
add all the extra scores of the specified result to its main score and return it.

Overrides:
apply in class Filter
Parameters:
result - a Result object
Returns:
the same Result object

apply

public Result[] apply(Result[] results)
Description copied from class: Filter
Filters an array of Result objects.

Overrides:
apply in class Filter
Parameters:
results - results to filter
Returns:
filtered results
See Also:
Filter.apply(info.ephyra.search.Result[])