info.ephyra.querygeneration.generators
Class QuestionReformulationG

java.lang.Object
  extended by info.ephyra.querygeneration.generators.QueryGenerator
      extended by info.ephyra.querygeneration.generators.QuestionReformulationG

public class QuestionReformulationG
extends QueryGenerator

The QuestionReformulationG can be applied to a question to obtain alternative queries that are more specific than a "bag of words" and therefore are more likely to return good results.

This class extends the class QueryGenerator.

Version:
2007-07-11
Author:
Nico Schlaefer

Field Summary
private static java.lang.String[] EXTRACTION_TECHNIQUES
          Answer extraction techniques for this query type.
private static QuestionReformulator[] reformulators
          Question reformulators that are applied to the question to obtain additional, more specific queries.
 
Constructor Summary
QuestionReformulationG()
           
 
Method Summary
 Query[] generateQueries(AnalyzedQuestion aq)
          Generates queries that are reformulations of the question string.
static boolean loadReformulators(java.lang.String dir)
          Loads the reformulation rules from text files in the given folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reformulators

private static QuestionReformulator[] reformulators
Question reformulators that are applied to the question to obtain additional, more specific queries.


EXTRACTION_TECHNIQUES

private static final java.lang.String[] EXTRACTION_TECHNIQUES
Answer extraction techniques for this query type.

Constructor Detail

QuestionReformulationG

public QuestionReformulationG()
Method Detail

generateQueries

public Query[] generateQueries(AnalyzedQuestion aq)
Generates queries that are reformulations of the question string.

Specified by:
generateQueries in class QueryGenerator
Parameters:
aq - analyzed question
Returns:
Query objects

loadReformulators

public static boolean loadReformulators(java.lang.String dir)
Loads the reformulation rules from text files in the given folder.

Parameters:
dir - folder that contains the reformulation rules
Returns:
true, iff the reformulation rules were loaded successfully