info.ephyra.answerselection.filters
Class AnswerProjectionFilter

java.lang.Object
  extended by info.ephyra.answerselection.filters.Filter
      extended by info.ephyra.answerselection.filters.AnswerProjectionFilter

public class AnswerProjectionFilter
extends Filter

The AnswerProjectionFilter projects answers from the Web onto a corpus.

This class extends the class Filter.

Version:
2007-07-24
Author:
Nico Schlaefer

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

EXTRACTION_TECHNIQUES

private static final java.lang.String[] EXTRACTION_TECHNIQUES
Answer extraction techniques in the order of their preference for answer projection.


resultsCorp

private Result[] resultsCorp
Results retrieved from the corpus.

Constructor Detail

AnswerProjectionFilter

public AnswerProjectionFilter(Result[] resultsCorp)
Creates the filter and sets the results retrieved from the corpus.

Parameters:
resultsCorp - results retrieved from the corpus
Method Detail

hasHigherPreference

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.

Parameters:
result1 - first result
result2 - second result
Returns:
true iff the techniques used for the first result have a higher preference

apply

public Result[] apply(Result[] results)
Projects Web answers onto the corpus.

Overrides:
apply in class Filter
Parameters:
results - array of Result objects from the Web
Returns:
array of Result objects from the corpus