org.terrier.evaluation
Class AdhocFullQueryEvaluation

java.lang.Object
  extended by org.terrier.evaluation.Evaluation
      extended by org.terrier.evaluation.AdhocEvaluation
          extended by org.terrier.evaluation.AdhocFullQueryEvaluation

public class AdhocFullQueryEvaluation
extends AdhocEvaluation

Performs a query by query evaluation of a results file. Like trec_eval -q.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.terrier.evaluation.Evaluation
Evaluation.Record
 
Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.terrier.evaluation.AdhocEvaluation
averagePrecisionOfEachQuery, maxNumberRetrieved, meanAveragePrecision, meanRelevantPrecision, numberOfEffQuery, PRECISION_PERCENTAGES, PRECISION_RANKS, precisionAtRank, precisionAtRecall, queryNo, totalNumberOfRelevant, totalNumberOfRelevantRetrieved, totalNumberOfRetrieved
 
Fields inherited from class org.terrier.evaluation.Evaluation
qrels
 
Constructor Summary
AdhocFullQueryEvaluation()
          Create full query adhoc evaluation
AdhocFullQueryEvaluation(java.lang.String qrelsFile)
          Create full query adhoc evaluation
AdhocFullQueryEvaluation(java.lang.String[] qrelsFiles)
          Create full query adhoc evaluation
 
Method Summary
 void evaluate(java.lang.String qrelsFilename, java.lang.String resultFilename)
          Evaluates the given result file for the given qrels file.
 
Methods inherited from class org.terrier.evaluation.AdhocEvaluation
evaluate, initialise, writeEvaluationResult, writeEvaluationResultOfEachQuery
 
Methods inherited from class org.terrier.evaluation.Evaluation
writeEvaluationResult, writeEvaluationResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

AdhocFullQueryEvaluation

public AdhocFullQueryEvaluation()
Create full query adhoc evaluation


AdhocFullQueryEvaluation

public AdhocFullQueryEvaluation(java.lang.String qrelsFile)
Create full query adhoc evaluation

Parameters:
qrelsFile -

AdhocFullQueryEvaluation

public AdhocFullQueryEvaluation(java.lang.String[] qrelsFiles)
Create full query adhoc evaluation

Parameters:
qrelsFiles -
Method Detail

evaluate

public void evaluate(java.lang.String qrelsFilename,
                     java.lang.String resultFilename)
Evaluates the given result file for the given qrels file.

Parameters:
resultFilename - java.lang.String the filename of the result file to evaluate.
qrelsFilename - java.lang.String the filename of the qrels file corresponding to the result file.


Terrier 3.5. Copyright © 2004-2011 University of Glasgow