info.ephyra.answerselection
Class AnswerSelection

java.lang.Object
  extended by info.ephyra.answerselection.AnswerSelection

public class AnswerSelection
extends java.lang.Object

The AnswerSelection component applies Filters to Results to promote promising results, to drop results that are unlikely to answer the question and to derive additional results from the raw results returned by the Searchers.

Version:
2006-06-28
Author:
Nico Schlaefer

Field Summary
private static java.util.ArrayList<Filter> filters
          The Filters that are applied to the Results.
 
Constructor Summary
AnswerSelection()
           
 
Method Summary
static void addFilter(Filter filter)
          Registers a Filter.
static void clearFilters()
          Unregisters all Filters.
static Result[] getResults(Result[] results, int maxResults, float minScore)
          Applies Filters to the Results from the search component and returns up to maxResults results with a score of at least minScore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filters

private static java.util.ArrayList<Filter> filters
The Filters that are applied to the Results. Filters are applied in the order in which they appear in this list.

Constructor Detail

AnswerSelection

public AnswerSelection()
Method Detail

addFilter

public static void addFilter(Filter filter)
Registers a Filter. Filters are applied in the order in which they are registered.

Parameters:
filter - Filter to add

clearFilters

public static void clearFilters()
Unregisters all Filters.


getResults

public static Result[] getResults(Result[] results,
                                  int maxResults,
                                  float minScore)
Applies Filters to the Results from the search component and returns up to maxResults results with a score of at least minScore.

Parameters:
results - search results
maxResults - maximum number of results to be returned
minScore - minimum score of a result that is returned
Returns:
up to maxResults results