|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.querygeneration.generators.QueryGenerator
info.ephyra.querygeneration.generators.QuestionReformulationG
public class QuestionReformulationG
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.
| 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 |
|---|
private static QuestionReformulator[] reformulators
private static final java.lang.String[] EXTRACTION_TECHNIQUES
| Constructor Detail |
|---|
public QuestionReformulationG()
| Method Detail |
|---|
public Query[] generateQueries(AnalyzedQuestion aq)
generateQueries in class QueryGeneratoraq - analyzed question
Query objectspublic static boolean loadReformulators(java.lang.String dir)
dir - folder that contains the reformulation rules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||