info.ephyra.answerselection.filters
Class FactoidSubsetFilter
java.lang.Object
info.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.FactoidSubsetFilter
public class FactoidSubsetFilter
- extends Filter
The FactoidSubsetFilter checks a set of factoid answers for
subset relations. If a factoid answer is a subset of another factoid answer
(i.e. its tokens are a subset of the tokens of another answer), then the
former is dropped and its score is tranferred to the latter.
The filter is only applied if the longer answer is a named entity that has
been extracted with a pattern-based or list-based tagger and thus is properly
chunked. This is to avoid that malformatted answers which contain additional
tokens (such as "1879 and") are preferred over properly chunked ones (e.g.
"1879").
This class extends the class Filter.
- Version:
- 2007-03-05
- Author:
- Nico Schlaefer
|
Method Summary |
Result[] |
apply(Result[] results)
Drops results that are subsets of other results and transfers their
scores to the remaining results. |
| 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 |
FactoidSubsetFilter
public FactoidSubsetFilter()
apply
public Result[] apply(Result[] results)
Drops results that are subsets of other results and transfers their
scores to the remaining results.
- Overrides:
apply in class Filter
- Parameters:
results - array of Result objects
- Returns:
- array of
Result objects that are not subsets