info.ephyra.questionanalysis
Class AnalyzedQuestion

java.lang.Object
  extended by info.ephyra.questionanalysis.AnalyzedQuestion
All Implemented Interfaces:
java.io.Serializable

public class AnalyzedQuestion
extends java.lang.Object
implements java.io.Serializable

An AnalyzedQuestion is a data structure representing a syntactic and semantic analysis of a question.

This class implements the interface Serializable.

Version:
2007-07-17
Author:
Nico Schlaefer
See Also:
Serialized Form

Field Summary
private  java.lang.String[] ats
          Expected answer types.
private  java.lang.String focus
          Focus word.
private  boolean isFactoid
          Indicates that this is a factoid question.
private  java.lang.String[] kws
          Keywords in the question and context.
private  java.lang.String[][] nes
          Named entities in the question and context.
private  Predicate[] ps
          Predicates extracted from the question.
private  QuestionInterpretation[] qis
          Interpretations of the question.
private  java.lang.String qn
          Normalized question string.
private  java.lang.String question
          Question string.
private static long serialVersionUID
          Version number used during deserialization.
private  java.lang.String stemmed
          Question string with stemmed verbs and nouns.
private  Term[] terms
          Terms in the question and context.
private  java.lang.String verbMod
          Question string with modified verbs.
 
Constructor Summary
AnalyzedQuestion(java.lang.String question)
           
AnalyzedQuestion(java.lang.String question, java.lang.String qn, java.lang.String stemmed, java.lang.String verbMod, java.lang.String[] kws, java.lang.String[][] nes, Term[] terms)
           
AnalyzedQuestion(java.lang.String question, java.lang.String qn, java.lang.String stemmed, java.lang.String verbMod, java.lang.String[] kws, java.lang.String[][] nes, Term[] terms, java.lang.String focus, java.lang.String[] ats, QuestionInterpretation[] qis, Predicate[] ps)
           
 
Method Summary
 java.lang.String[] getAnswerTypes()
           
 java.lang.String getFocus()
           
 QuestionInterpretation[] getInterpretations()
           
 java.lang.String[] getKeywords()
           
 java.lang.String[][] getNes()
           
 java.lang.String getNormalized()
           
 Predicate[] getPredicates()
           
 java.lang.String getQuestion()
           
 java.lang.String getStemmed()
           
 Term[] getTerms()
           
 java.lang.String getVerbMod()
           
 boolean isFactoid()
           
 void setAnswerTypes(java.lang.String[] ats)
           
 void setFactoid(boolean isFactoid)
           
 void setFocus(java.lang.String focus)
           
 void setInterpretations(QuestionInterpretation[] qis)
           
 void setKeywords(java.lang.String[] kws)
           
 void setNes(java.lang.String[][] nes)
           
 void setNormalized(java.lang.String qn)
           
 void setPredicates(Predicate[] ps)
           
 void setQuestion(java.lang.String question)
           
 void setStemmed(java.lang.String stemmed)
           
 void setTerms(Term[] terms)
           
 void setVerbMod(java.lang.String verbMod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Version number used during deserialization.

See Also:
Constant Field Values

question

private java.lang.String question
Question string.


qn

private java.lang.String qn
Normalized question string.


stemmed

private java.lang.String stemmed
Question string with stemmed verbs and nouns.


verbMod

private java.lang.String verbMod
Question string with modified verbs.


kws

private java.lang.String[] kws
Keywords in the question and context.


nes

private java.lang.String[][] nes
Named entities in the question and context.


terms

private Term[] terms
Terms in the question and context.


focus

private java.lang.String focus
Focus word.


ats

private java.lang.String[] ats
Expected answer types.


qis

private QuestionInterpretation[] qis
Interpretations of the question.


ps

private Predicate[] ps
Predicates extracted from the question.


isFactoid

private boolean isFactoid
Indicates that this is a factoid question.

Constructor Detail

AnalyzedQuestion

public AnalyzedQuestion(java.lang.String question)

AnalyzedQuestion

public AnalyzedQuestion(java.lang.String question,
                        java.lang.String qn,
                        java.lang.String stemmed,
                        java.lang.String verbMod,
                        java.lang.String[] kws,
                        java.lang.String[][] nes,
                        Term[] terms)

AnalyzedQuestion

public AnalyzedQuestion(java.lang.String question,
                        java.lang.String qn,
                        java.lang.String stemmed,
                        java.lang.String verbMod,
                        java.lang.String[] kws,
                        java.lang.String[][] nes,
                        Term[] terms,
                        java.lang.String focus,
                        java.lang.String[] ats,
                        QuestionInterpretation[] qis,
                        Predicate[] ps)
Method Detail

getQuestion

public java.lang.String getQuestion()

getNormalized

public java.lang.String getNormalized()

getStemmed

public java.lang.String getStemmed()

getVerbMod

public java.lang.String getVerbMod()

getKeywords

public java.lang.String[] getKeywords()

getNes

public java.lang.String[][] getNes()

getTerms

public Term[] getTerms()

getFocus

public java.lang.String getFocus()

getAnswerTypes

public java.lang.String[] getAnswerTypes()

getInterpretations

public QuestionInterpretation[] getInterpretations()

getPredicates

public Predicate[] getPredicates()

isFactoid

public boolean isFactoid()

setQuestion

public void setQuestion(java.lang.String question)

setNormalized

public void setNormalized(java.lang.String qn)

setStemmed

public void setStemmed(java.lang.String stemmed)

setVerbMod

public void setVerbMod(java.lang.String verbMod)

setKeywords

public void setKeywords(java.lang.String[] kws)

setNes

public void setNes(java.lang.String[][] nes)

setTerms

public void setTerms(Term[] terms)

setFocus

public void setFocus(java.lang.String focus)

setAnswerTypes

public void setAnswerTypes(java.lang.String[] ats)

setInterpretations

public void setInterpretations(QuestionInterpretation[] qis)

setPredicates

public void setPredicates(Predicate[] ps)

setFactoid

public void setFactoid(boolean isFactoid)