info.ephyra.trec
Class TRECQuestion

java.lang.Object
  extended by info.ephyra.trec.TRECQuestion

public class TRECQuestion
extends java.lang.Object

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.

Version:
2006-06-11
Author:
Nico Schlaefer

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

id

private java.lang.String id
The ID of the question.


type

private java.lang.String type
The type of the question.


questionString

private java.lang.String questionString
The question string.


answers

private TRECAnswer[] answers
The answers from the QA engine.


interpretation

private QuestionInterpretation interpretation
Question interpretation that led to the top answer if available.

Constructor Detail

TRECQuestion

public 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.

Parameters:
id - the ID of the question
type - the type of the question
questionString - the question string
Method Detail

setQuestionString

public void setQuestionString(java.lang.String questionString)
Sets a modified question string, e.g. after coreference resolution.

Parameters:
questionString - modified question string

setAnswers

public void setAnswers(TRECAnswer[] answers)
Sets the answers determined by the QA engine.

Parameters:
answers - the answers

setInterpretation

public void setInterpretation(QuestionInterpretation interpretation)
Sets the question interpretation that led to the top answer.

Parameters:
interpretation - top interpretation

getId

public java.lang.String getId()
Returns the ID of the question.

Returns:
ID

getType

public java.lang.String getType()
Returns the type of the question.

Returns:
type

getQuestionString

public java.lang.String getQuestionString()
Returns the question string.

Returns:
question string

getAnswers

public TRECAnswer[] getAnswers()
Returns the answers determined by the QA engine.

Returns:
answers

getInterpretation

public QuestionInterpretation getInterpretation()
Returns the question interpretation that led to the top answer if available.

Returns:
top interpretation