|
||||||||||
| 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.AnswerProjectionFilter
public class AnswerProjectionFilter
The AnswerProjectionFilter projects answers from the Web onto
a corpus.
This class extends the class Filter.
| Field Summary | |
|---|---|
private static java.lang.String[] |
EXTRACTION_TECHNIQUES
Answer extraction techniques in the order of their preference for answer projection. |
private Result[] |
resultsCorp
Results retrieved from the corpus. |
| Constructor Summary | |
|---|---|
AnswerProjectionFilter(Result[] resultsCorp)
Creates the filter and sets the results retrieved from the corpus. |
|
| Method Summary | |
|---|---|
Result[] |
apply(Result[] results)
Projects Web answers onto the corpus. |
private boolean |
hasHigherPreference(Result result1,
Result result2)
Checks if the answer extraction techniques used to extract the first result have a higher preference for answer projection than the techniques used for the second result. |
| 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 |
| Field Detail |
|---|
private static final java.lang.String[] EXTRACTION_TECHNIQUES
private Result[] resultsCorp
| Constructor Detail |
|---|
public AnswerProjectionFilter(Result[] resultsCorp)
resultsCorp - results retrieved from the corpus| Method Detail |
|---|
private boolean hasHigherPreference(Result result1,
Result result2)
result1 - first resultresult2 - second result
true iff the techniques used for the first result
have a higher preferencepublic Result[] apply(Result[] results)
apply in class Filterresults - array of Result objects from the Web
Result objects from the corpus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||