Terrier IR Platform
2.2.1

uk.ac.gla.terrier.evaluation
Class AdhocEvaluation

java.lang.Object
  extended by uk.ac.gla.terrier.evaluation.Evaluation
      extended by uk.ac.gla.terrier.evaluation.AdhocEvaluation
Direct Known Subclasses:
AdhocFullQueryEvaluation

public class AdhocEvaluation
extends Evaluation

Performs the evaluation for TREC's tasks, except the named page task. The evaluation measures include the mean average precision and other measures such as precision at 10, precision at 10%, and so on....

Version:
$Revision: 1.33 $
Author:
Gianni Amati, Ben He

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.gla.terrier.evaluation.Evaluation
Evaluation.Record
 
Field Summary
 
Fields inherited from class uk.ac.gla.terrier.evaluation.Evaluation
qrels
 
Constructor Summary
AdhocEvaluation()
           
 
Method Summary
 void evaluate(java.lang.String resultFilename)
          Evaluates the given result file.
 void initialise()
          Initialise variables.
 void writeEvaluationResult(java.io.PrintWriter out)
          Output the evaluation result to the specific file.
 void writeEvaluationResultOfEachQuery(java.lang.String resultEvalFilename)
          Output the evaluation result of each query to the specific file.
 
Methods inherited from class uk.ac.gla.terrier.evaluation.Evaluation
writeEvaluationResult, writeEvaluationResult
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdhocEvaluation

public AdhocEvaluation()
Method Detail

initialise

public void initialise()
Initialise variables.


evaluate

public void evaluate(java.lang.String resultFilename)
Evaluates the given result file.

Specified by:
evaluate in class Evaluation
Parameters:
resultFilename - String the filename of the result file to evaluate.

writeEvaluationResultOfEachQuery

public void writeEvaluationResultOfEachQuery(java.lang.String resultEvalFilename)
Output the evaluation result of each query to the specific file.

Specified by:
writeEvaluationResultOfEachQuery in class Evaluation
Parameters:
resultEvalFilename - String the name of the file in which to save the evaluation results.

writeEvaluationResult

public void writeEvaluationResult(java.io.PrintWriter out)
Output the evaluation result to the specific file.

Specified by:
writeEvaluationResult in class Evaluation
Parameters:
out - java.io.PrintWriter the stream to which the results are printed.

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow