info.ephyra.querygeneration.generators
Class QuestionInterpretationG

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

public class QuestionInterpretationG
extends QueryGenerator

The QuestionInterpretationG generates queries from question interpretations. The query string is built from the TARGET, the CONTEXT and the keywords in the question (for question answering only) or the answer string (for pattern learning only).

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 float SCORE
          The score assigned to queries created from question interpretations.
 
Constructor Summary
QuestionInterpretationG()
           
 
Method Summary
 Query[] generateQueries(AnalyzedQuestion aq)
          Creates queries from question interpretations.
 java.lang.String queryString(java.lang.String target, java.lang.String[] context, java.lang.String[] kws)
          Creates a query string from the interpretation of a question and the keywords in the question (for question answering only) or an answer string (for pattern learning only).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCORE

private static final float SCORE
The score assigned to queries created from question interpretations.

See Also:
Constant Field Values

EXTRACTION_TECHNIQUES

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

Constructor Detail

QuestionInterpretationG

public QuestionInterpretationG()
Method Detail

generateQueries

public Query[] generateQueries(AnalyzedQuestion aq)
Creates queries from question interpretations. The query string is the concatenation of the target object, any context objects and the keywords in the question.

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

queryString

public java.lang.String queryString(java.lang.String target,
                                    java.lang.String[] context,
                                    java.lang.String[] kws)
Creates a query string from the interpretation of a question and the keywords in the question (for question answering only) or an answer string (for pattern learning only).

Parameters:
target - TARGET object
context - CONTEXT objects
kws - keywords in the question string (for question answering) or answer string (for pattern learning)
Returns:
query string