|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.trec.TRECQuestion
public class TRECQuestion
A TRECQuestion is a simple data structure consisting of a
question ID, a question type, a question string and the answers returned by
the QA engine.
| Field Summary | |
|---|---|
private TRECAnswer[] |
answers
The answers from the QA engine. |
private java.lang.String |
id
The ID of the question. |
private QuestionInterpretation |
interpretation
Question interpretation that led to the top answer if available. |
private java.lang.String |
questionString
The question string. |
private java.lang.String |
type
The type of the question. |
| Constructor Summary | |
|---|---|
TRECQuestion(java.lang.String id,
java.lang.String type,
java.lang.String questionString)
Creates a TRECQuestion data structure and sets the fields
for ID, type and question string. |
|
| Method Summary | |
|---|---|
TRECAnswer[] |
getAnswers()
Returns the answers determined by the QA engine. |
java.lang.String |
getId()
Returns the ID of the question. |
QuestionInterpretation |
getInterpretation()
Returns the question interpretation that led to the top answer if available. |
java.lang.String |
getQuestionString()
Returns the question string. |
java.lang.String |
getType()
Returns the type of the question. |
void |
setAnswers(TRECAnswer[] answers)
Sets the answers determined by the QA engine. |
void |
setInterpretation(QuestionInterpretation interpretation)
Sets the question interpretation that led to the top answer. |
void |
setQuestionString(java.lang.String questionString)
Sets a modified question string, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String id
private java.lang.String type
private java.lang.String questionString
private TRECAnswer[] answers
private QuestionInterpretation interpretation
| Constructor Detail |
|---|
public TRECQuestion(java.lang.String id,
java.lang.String type,
java.lang.String questionString)
TRECQuestion data structure and sets the fields
for ID, type and question string.
id - the ID of the questiontype - the type of the questionquestionString - the question string| Method Detail |
|---|
public void setQuestionString(java.lang.String questionString)
questionString - modified question stringpublic void setAnswers(TRECAnswer[] answers)
answers - the answerspublic void setInterpretation(QuestionInterpretation interpretation)
interpretation - top interpretationpublic java.lang.String getId()
public java.lang.String getType()
public java.lang.String getQuestionString()
public TRECAnswer[] getAnswers()
public QuestionInterpretation getInterpretation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||