info.ephyra.querygeneration.generators
Class PredicateG

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

public class PredicateG
extends QueryGenerator

The PredicateG query generator creates queries from the predicates in the question string.

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 java.lang.String IGNORE
          Words that should not be part of a query string.
private static float SCORE
          Score assigned to queries created from predicates.
 
Constructor Summary
PredicateG()
           
 
Method Summary
 Query[] generateQueries(AnalyzedQuestion aq)
          Generates queries from predicate-argument structures extracted from the question string.
 java.lang.String getQueryString(Predicate[] predicates, Term[] terms, java.lang.String[] kws)
          Forms a query string from the predicates, terms and individual keywords.
 
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
Score assigned to queries created from predicates.

See Also:
Constant Field Values

IGNORE

private static final java.lang.String IGNORE
Words that should not be part of a query string.

See Also:
Constant Field Values

EXTRACTION_TECHNIQUES

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

Constructor Detail

PredicateG

public PredicateG()
Method Detail

getQueryString

public java.lang.String getQueryString(Predicate[] predicates,
                                       Term[] terms,
                                       java.lang.String[] kws)
Forms a query string from the predicates, terms and individual keywords.

Parameters:
predicates - predicates in the question
terms - terms in the question
kws - keywords in the question
Returns:
query string

generateQueries

public Query[] generateQueries(AnalyzedQuestion aq)
Generates queries from predicate-argument structures extracted from the question string.

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