info.ephyra.answerselection.filters
Class PreferNamedEntitiesFilter

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

public class PreferNamedEntitiesFilter
extends Filter

The PreferNamedEntitiesFilter prefers factoid answers that are named entities over other factoid answers.

This class extends the class Filter.

Version:
2007-01-29
Author:
Nico Schlaefer

Constructor Summary
PreferNamedEntitiesFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          If there are named entities among the factoid answers then answers that are not named entities are dropped.
 
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

PreferNamedEntitiesFilter

public PreferNamedEntitiesFilter()
Method Detail

apply

public Result[] apply(Result[] results)
If there are named entities among the factoid answers then answers that are not named entities are dropped.

Overrides:
apply in class Filter
Parameters:
results - array of Result objects
Returns:
results that are named entities