|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.StopwordFilter
public class StopwordFilter
A filter that drops a result if the answer string
This filter is not applied to answer strings that have been extracted with a rule- or list-based NE tagger since these answers are assumed to be properly formatted.
This class extends the class Filter.
| Constructor Summary | |
|---|---|
StopwordFilter()
|
|
| Method Summary | |
|---|---|
Result |
apply(Result result)
Filters a single Result object. |
private Result |
filterAdverbs(Result result)
Drops a result if the answer string is an adverb. |
private Result |
filterFunctionWords(Result result)
Drops a result if the answer string contains only function words and single characters (except digits). |
private Result |
filterInterrogatives(Result result)
Drops a result if the answer string contains an interrogative. |
private Result |
filterSingleBracket(Result result)
Drops a result if the answer string contains a single bracket or quotation mark. |
| 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 |
|---|
public StopwordFilter()
| Method Detail |
|---|
private Result filterFunctionWords(Result result)
result - result to filter
nullprivate Result filterInterrogatives(Result result)
result - result to be filtered
nullprivate Result filterSingleBracket(Result result)
result - result to be filtered
nullprivate Result filterAdverbs(Result result)
result - result to filter
nullpublic Result apply(Result result)
Result object.
apply in class Filterresult - result to filter
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||