|
||||||||||
| 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.BagOfTermsG
public class BagOfTermsG
The BagOfTermsG query generator creates a query from the
terms in the question string.
This class extends the class QueryGenerator.
| Field Summary | |
|---|---|
private static java.lang.String[] |
EXTRACTION_TECHNIQUES
Answer extraction techniques for this query type. |
private static float |
SCORE
Score assigned to "bag of terms" queries. |
| Constructor Summary | |
|---|---|
BagOfTermsG()
|
|
| Method Summary | |
|---|---|
Query[] |
generateQueries(AnalyzedQuestion aq)
Generates a "bag of terms" query from the terms in the question string. |
private java.lang.String |
getQueryString(Term[] terms,
java.lang.String[] kws)
Forms a query string from the terms and individual keywords. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final float SCORE
private static final java.lang.String[] EXTRACTION_TECHNIQUES
| Constructor Detail |
|---|
public BagOfTermsG()
| Method Detail |
|---|
private java.lang.String getQueryString(Term[] terms,
java.lang.String[] kws)
terms - terms in the questionkws - keywords in the question
public Query[] generateQueries(AnalyzedQuestion aq)
generateQueries in class QueryGeneratoraq - analyzed question
Query objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||