info.ephyra.trec
Class TRECTarget

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

public class TRECTarget
extends java.lang.Object

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.

Version:
2006-07-09
Author:
Nico Schlaefer

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

TARGET_TYPES

public static final java.lang.String[] TARGET_TYPES
All types of targets.


id

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


targetDesc

private java.lang.String targetDesc
The target description.


condensedTarget

private java.lang.String condensedTarget
Condensed target appended to queries for factoid and list questions.


targetTypes

private java.lang.String[] targetTypes
Possible target types.


nounPhrase

private boolean nounPhrase
Indicates if the target is a noun phrase.


questions

private TRECQuestion[] questions
The questions on the target.

Constructor Detail

TRECTarget

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

Parameters:
id - the ID of the target
targetDesc - the target description
questions - the questions on the target
Method Detail

getId

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

Returns:
ID

getTargetDesc

public java.lang.String getTargetDesc()
Returns the target description.

Returns:
target description

getCondensedTarget

public java.lang.String getCondensedTarget()
Returns the condensed target.

Returns:
condensed target

getTargetTypes

public java.lang.String[] getTargetTypes()
Returns the possible target types.

Returns:
array of target types

isNounPhrase

public boolean isNounPhrase()
Checks if the target is a noun phrase.

Returns:
true iff the target is a noun phrase.

getQuestions

public TRECQuestion[] getQuestions()
Returns the questions on the target.

Returns:
questions

setTargetDesc

public void setTargetDesc(java.lang.String targetDesc)
Sets the target description.

Parameters:
targetDesc - target description

setCondensedTarget

public void setCondensedTarget(java.lang.String condensedTarget)
Sets the condensed target.

Parameters:
condensedTarget - condensed target

setTargetTypes

public void setTargetTypes(java.lang.String[] targetTypes)
Sets the possible target types.

Parameters:
targetTypes - possible target types

setNounPhrase

public void setNounPhrase(boolean nounPhrase)
Marks the target as a noun phrase.

Parameters:
nounPhrase - true or false