info.ephyra.answerselection.filters
Class QuestionKeywordsFilter
java.lang.Object
info.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.QuestionKeywordsFilter
public class QuestionKeywordsFilter
- extends Filter
A filter that drops a result if the answer string contains a keyword from
the question. Useful to eliminate answers that simply repeat the question,
e.g. without this filter a likely answer to the question "Who killed JFK?"
would be "JFK".
Note that this filter causes problems if a correct answer repeats part of
the question, e.g. answers to the question "What are the members of the
Kennedy clan?" also contain the keyword "Kennedy".
This class extends the class Filter.
- Version:
- 2007-04-16
- Author:
- Nico Schlaefer
| 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 |
QuestionKeywordsFilter
public QuestionKeywordsFilter()
apply
public Result apply(Result result)
- Filters a single
Result object.
- Overrides:
apply in class Filter
- Parameters:
result - result to filter
- Returns:
- result or
null