|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.answerselection.AnswerSelection
public class AnswerSelection
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.
| 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 |
|---|
private static java.util.ArrayList<Filter> filters
Filters that are applied to the Results.
Filters are applied in the order in which they appear in this list.
| Constructor Detail |
|---|
public AnswerSelection()
| Method Detail |
|---|
public static void addFilter(Filter filter)
Filter. Filters are applied in the order in
which they are registered.
filter - Filter to addpublic static void clearFilters()
Filters.
public static Result[] getResults(Result[] results,
int maxResults,
float minScore)
Filters to the Results from the search
component and returns up to maxResults results with a score
of at least minScore.
results - search resultsmaxResults - maximum number of results to be returnedminScore - minimum score of a result that is returned
maxResults results
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||