info.ephyra.answerselection.filters
Class NounPhraseFilter

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

public class NounPhraseFilter
extends Filter

Scores answer candidates for definitional questions according to the number of novel noun phrases they contain.

This class extends the class Filter.

Version:
2008-02-15
Author:
Guido Sautter

Constructor Summary
NounPhraseFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Increments the score of each result snippet according to the number of noun phrases it is the first to contain.
 
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

NounPhraseFilter

public NounPhraseFilter()
Method Detail

apply

public Result[] apply(Result[] results)
Increments the score of each result snippet according to the number of noun phrases it is the first to contain. This is meant to prefer snippets that provide new information over those that repeat information from previous snippets.

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