info.ephyra.answerselection.filters
Class TermImportanceFilter

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

public class TermImportanceFilter
extends Filter

Prefers answer candidates for definitional questions that contain common keywords.

This class extends the class Filter.

Version:
2008-02-15
Author:
Guido Sautter

Constructor Summary
TermImportanceFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Increments the score of each result snippet for each word in it according to the number of result snippets containing this particular word.
 
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

TermImportanceFilter

public TermImportanceFilter()
Method Detail

apply

public Result[] apply(Result[] results)
Increments the score of each result snippet for each word in it according to the number of result snippets containing this particular word. This is sort of a centrality measure, which favors snippets that provide information given frequently and thus likely to be more important with regard to the target.

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