es.nlp.uned.weps.evaluation
Class TopicEvaluation

java.lang.Object
  extended by es.nlp.uned.weps.evaluation.TopicEvaluation

public class TopicEvaluation
extends java.lang.Object

This class holds the results for different evaluation measures over an answer and a key clusterings for the WePS Task.

Author:
javart

Constructor Summary
TopicEvaluation(java.lang.String names_set_id)
          The Constructor.
 
Method Summary
 java.lang.String[] getMeasures()
          Gets the measures.
 java.lang.String getNamesSetID()
          Gets the names set ID.
 double getScore(java.lang.String measure_id)
          Gets the score.
 double getScore(java.lang.String measure_id, int round_precision)
          Gets the score.
 void setScore(java.lang.String measure_id, double value)
          Sets the score.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicEvaluation

public TopicEvaluation(java.lang.String names_set_id)
The Constructor.

Parameters:
names_set_id - the names_set_id
Method Detail

getMeasures

public java.lang.String[] getMeasures()
Gets the measures.

Returns:
a list of metric IDs evaluated for this topic

setScore

public void setScore(java.lang.String measure_id,
                     double value)
Sets the score.

Parameters:
measure_id - the measure_id
value - the value

getScore

public double getScore(java.lang.String measure_id)
Gets the score.

Parameters:
measure_id - the measure_id
Returns:
the score

getScore

public double getScore(java.lang.String measure_id,
                       int round_precision)
Gets the score.

Parameters:
measure_id - the measure_id
round_precision - the round_precision
Returns:
the score

getNamesSetID

public java.lang.String getNamesSetID()
Gets the names set ID.

Returns:
the names set ID