info.ephyra.answerselection.filters
Class QueryScoreFilter

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

public class QueryScoreFilter
extends Filter

This filter simply increments the score of each result by the score of the query that was used to obtain the result. This takes into consideration that more specific queries in general return more valuable results than simple "bags of words".

This class extends the class Filter.

Version:
2005-09-15
Author:
Nico Schlaefer

Constructor Summary
QueryScoreFilter()
           
 
Method Summary
 Result apply(Result result)
          Filters a single Result object.
 
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

QueryScoreFilter

public QueryScoreFilter()
Method Detail

apply

public Result apply(Result result)
Filters a single Result object.

Overrides:
apply in class Filter
Parameters:
result - result to filter
Returns:
result with manipulated score