info.ephyra.answerselection.filters
Class CutStatementProviderFilter

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

public class CutStatementProviderFilter
extends Filter

Trims answer candidates for definitional questions to improve the precision by chopping of leading introductions of indirect speech.

This class extends the class Filter.

Version:
2008-02-10
Author:
Guido Sautter

Field Summary
private static java.util.regex.Pattern PROVIDER_AT_START
           
 
Constructor Summary
CutStatementProviderFilter()
           
 
Method Summary
 Result apply(Result result)
          Cut leading or tailing introductory parts of information given in indirect speech.
 Result[] apply(Result[] results)
          Cut leading or tailing introductory parts of information given in indirect speech.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_AT_START

private static final java.util.regex.Pattern PROVIDER_AT_START
Constructor Detail

CutStatementProviderFilter

public CutStatementProviderFilter()
Method Detail

apply

public Result apply(Result result)
Cut leading or tailing introductory parts of information given in indirect speech. This is in order to not waste result length with these parts. It would cut, for instance, 'XYZ said that' from 'XYZ said that ... some useful information ...'

Overrides:
apply in class Filter
Parameters:
result - a Result object
Returns:
the same Result object

apply

public Result[] apply(Result[] results)
Cut leading or tailing introductory parts of information given in indirect speech. This is in order to not waste result length with these parts. It would cut, for instance, 'XYZ said that' from 'XYZ said that ... some useful information ...'

Overrides:
apply in class Filter
Parameters:
results - array of Result objects
Returns:
extended array of Result objects