|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.trec.TRECTarget
public class TRECTarget
A TRECTarget is a simple data structure consisting of the ID of
the target, the target description, possible target types and a list of
questions.
| Field Summary | |
|---|---|
private java.lang.String |
condensedTarget
Condensed target appended to queries for factoid and list questions. |
private java.lang.String |
id
The ID of the target. |
private boolean |
nounPhrase
Indicates if the target is a noun phrase. |
private TRECQuestion[] |
questions
The questions on the target. |
static java.lang.String[] |
TARGET_TYPES
All types of targets. |
private java.lang.String |
targetDesc
The target description. |
private java.lang.String[] |
targetTypes
Possible target types. |
| Constructor Summary | |
|---|---|
TRECTarget(java.lang.String id,
java.lang.String targetDesc,
TRECQuestion[] questions)
Creates a TRECTarget data structure and sets the ID, the
target description and the questions. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCondensedTarget()
Returns the condensed target. |
java.lang.String |
getId()
Returns the ID of the target. |
TRECQuestion[] |
getQuestions()
Returns the questions on the target. |
java.lang.String |
getTargetDesc()
Returns the target description. |
java.lang.String[] |
getTargetTypes()
Returns the possible target types. |
boolean |
isNounPhrase()
Checks if the target is a noun phrase. |
void |
setCondensedTarget(java.lang.String condensedTarget)
Sets the condensed target. |
void |
setNounPhrase(boolean nounPhrase)
Marks the target as a noun phrase. |
void |
setTargetDesc(java.lang.String targetDesc)
Sets the target description. |
void |
setTargetTypes(java.lang.String[] targetTypes)
Sets the possible target types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] TARGET_TYPES
private java.lang.String id
private java.lang.String targetDesc
private java.lang.String condensedTarget
private java.lang.String[] targetTypes
private boolean nounPhrase
private TRECQuestion[] questions
| Constructor Detail |
|---|
public TRECTarget(java.lang.String id,
java.lang.String targetDesc,
TRECQuestion[] questions)
TRECTarget data structure and sets the ID, the
target description and the questions.
id - the ID of the targettargetDesc - the target descriptionquestions - the questions on the target| Method Detail |
|---|
public java.lang.String getId()
public java.lang.String getTargetDesc()
public java.lang.String getCondensedTarget()
public java.lang.String[] getTargetTypes()
public boolean isNounPhrase()
true iff the target is a noun phrase.public TRECQuestion[] getQuestions()
public void setTargetDesc(java.lang.String targetDesc)
targetDesc - target descriptionpublic void setCondensedTarget(java.lang.String condensedTarget)
condensedTarget - condensed targetpublic void setTargetTypes(java.lang.String[] targetTypes)
targetTypes - possible target typespublic void setNounPhrase(boolean nounPhrase)
nounPhrase - true or false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||