Terrier IR Platform
1.1.1

uk.ac.gla.terrier.evaluation
Class NamedPageEvaluation

java.lang.Object
  extended by uk.ac.gla.terrier.evaluation.Evaluation
      extended by uk.ac.gla.terrier.evaluation.NamedPageEvaluation

public class NamedPageEvaluation
extends Evaluation

Performs the evaluation for TREC's named/home page finding task. The evaluation measure is the average reciprocal rank of those relevant documents that are among the top 50 documents.

Version:
$Revision: 1.23 $
Author:
Vassilis Plachouras

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
NamedPageEvaluation()
           
 
Method Summary
 void evaluate(java.lang.String resultFilename)
          Evaluates the given result file.
 void writeEvaluationResult(java.io.PrintStream out)
          Output the evaluation result to the specific file.
 void writeEvaluationResultOfEachQuery(java.lang.String resultFilename)
          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

NamedPageEvaluation

public NamedPageEvaluation()
Method Detail

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 resultFilename)
Output the evaluation result of each query to the specific file.

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

writeEvaluationResult

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

Specified by:
writeEvaluationResult in class Evaluation
Parameters:
out - PrintStream the name of the stream to output the result.

Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow