info.ephyra.answerselection.filters
Class TripletFilter

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

public class TripletFilter
extends Filter

Scores answer candidates for definitional questions according to the number of novel NP-VP-NP triplets they contain.

This class extends the class Filter.

Version:
2008-02-15
Author:
Guido Sautter

Constructor Summary
TripletFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Increments the score of each result snippet according to the number of NP-VP-NP triplets 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

TripletFilter

public TripletFilter()
Method Detail

apply

public Result[] apply(Result[] results)
Increments the score of each result snippet according to the number of NP-VP-NP triplets 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