|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.querygeneration.Query
public class Query
A Query is a data structure representing a search engine
query.
The required fields are a query string, the analyzed question, a score that is the higher the more specific the query and the extraction techniques applied to results retrieved with this query.
This class implements the interface Serializable.
| Field Summary | |
|---|---|
private AnalyzedQuestion |
analyzedQuestion
The analyzed question. |
private java.lang.String[] |
extractionTechniques
The answer extraction techniques applied to results retrieved with this query. |
private java.lang.String |
originalQueryString
the original query String before normalization |
private QuestionInterpretation |
qi
The interpretation of the question used to generate this query (optional). |
private java.lang.String |
queryString
The query string. |
private float |
score
The score of the query. |
private static long |
serialVersionUID
Version number used during deserialization. |
| Constructor Summary | |
|---|---|
Query(java.lang.String queryString)
Creates a new Query object and sets the query string. |
|
Query(java.lang.String queryString,
AnalyzedQuestion analyzedQuestion,
float score)
Creates a new Query object and sets the query string, the
analyzed question and the score of the query. |
|
| Method Summary | |
|---|---|
boolean |
addExtractionTechnique(java.lang.String technique)
Adds an answer extraction technique that is applied to results retrieved with this query. |
boolean |
extractWith(java.lang.String technique)
Checks if the given answer extraction technique is applied to results retrieved with this query. |
AnalyzedQuestion |
getAnalyzedQuestion()
Returns the analyzed question |
Query |
getCopy()
Return a copy of this Query object. |
QuestionInterpretation |
getInterpretation()
Returns the interpretation of the question used to generate this query. |
java.lang.String |
getOriginalQueryString()
|
java.lang.String |
getQueryString()
Returns the query string. |
float |
getScore()
Returns the score of the query. |
void |
setAnalyzedQuestion(AnalyzedQuestion analyzedQuestion)
Sets the analyzed question. |
void |
setExtractionTechniques(java.lang.String[] techniques)
Sets the answer extraction techniques that are applied to results retrieved with this query. |
void |
setInterpretation(QuestionInterpretation qi)
Sets the interpretation of the question used to generate this query. |
void |
setOriginalQueryString(java.lang.String originalQueryString)
|
void |
setQueryString(java.lang.String queryString)
Sets the query string. |
void |
setScore(float score)
Sets the score of the query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private java.lang.String queryString
private java.lang.String originalQueryString
private AnalyzedQuestion analyzedQuestion
private float score
private java.lang.String[] extractionTechniques
private QuestionInterpretation qi
| Constructor Detail |
|---|
public Query(java.lang.String queryString)
Query object and sets the query string.
queryString - query string
public Query(java.lang.String queryString,
AnalyzedQuestion analyzedQuestion,
float score)
Query object and sets the query string, the
analyzed question and the score of the query.
queryString - query stringanalyzedQuestion - analyzed questionscore - score of the query| Method Detail |
|---|
public java.lang.String getQueryString()
public java.lang.String getOriginalQueryString()
public void setOriginalQueryString(java.lang.String originalQueryString)
originalQueryString - the original query Stringpublic AnalyzedQuestion getAnalyzedQuestion()
public float getScore()
public boolean extractWith(java.lang.String technique)
technique - answer extraction technique
true iff the technique is usedpublic QuestionInterpretation getInterpretation()
public void setQueryString(java.lang.String queryString)
queryString - query stringpublic void setAnalyzedQuestion(AnalyzedQuestion analyzedQuestion)
analyzedQuestion - analyzed questionpublic void setScore(float score)
score - score of the querypublic void setExtractionTechniques(java.lang.String[] techniques)
techniques - answer extraction techniquespublic boolean addExtractionTechnique(java.lang.String technique)
technique - answer extraction technique
true iff a new technique was addedpublic void setInterpretation(QuestionInterpretation qi)
qi - question interpretationpublic Query getCopy()
Query object.
Query object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||