public class AdhocEvaluation extends Evaluation
Evaluation.Record| Modifier and Type | Field and Description | 
|---|---|
| protected double[] | averagePrecisionOfEachQueryThe average precision of each query. | 
| protected static org.slf4j.Logger | logger | 
| protected int | maxNumberRetrievedThe maximum number of documents retrieved for a query. | 
| protected double | meanAveragePrecisionAverage Precision. | 
| protected double | meanRelevantPrecisionRelevant Precision. | 
| protected int | numberOfEffQueryThe number of effective queries. | 
| protected static int[] | PRECISION_PERCENTAGES | 
| protected static int[] | PRECISION_RANKS | 
| protected gnu.trove.TIntDoubleHashMap | precisionAtRankPrecision at rank number of documents | 
| protected gnu.trove.TIntDoubleHashMap | precisionAtRecall | 
| protected String[] | queryNoThe query number of each query. | 
| protected int | totalNumberOfRelevantThe total number of relevant documents in the qrels file
        for the queries processed in the task. | 
| protected int | totalNumberOfRelevantRetrievedThe total number of relevant documents retrieved in the task. | 
| protected int | totalNumberOfRetrievedThe total number of documents retrieved in the task. | 
qrels| Constructor and Description | 
|---|
| AdhocEvaluation()Create adhoc evaluation | 
| AdhocEvaluation(String qrelsFile)Create adhoc evaluation | 
| AdhocEvaluation(String[] qrelsFiles)Create adhoc evaluation | 
| Modifier and Type | Method and Description | 
|---|---|
| void | evaluate(String resultFilename)Evaluates the given result file. | 
| void | initialise()Initialise variables. | 
| void | writeEvaluationResult(PrintWriter out)Output the evaluation result to the specific file. | 
| void | writeEvaluationResultOfEachQuery(String resultEvalFilename)Output the evaluation result of each query to the specific file. | 
writeEvaluationResult, writeEvaluationResultprotected static final org.slf4j.Logger logger
protected static final int[] PRECISION_RANKS
protected static final int[] PRECISION_PERCENTAGES
protected int maxNumberRetrieved
protected int numberOfEffQuery
protected int totalNumberOfRetrieved
protected int totalNumberOfRelevant
protected int totalNumberOfRelevantRetrieved
protected gnu.trove.TIntDoubleHashMap precisionAtRank
protected gnu.trove.TIntDoubleHashMap precisionAtRecall
protected double meanAveragePrecision
protected double meanRelevantPrecision
protected double[] averagePrecisionOfEachQuery
protected String[] queryNo
public AdhocEvaluation()
public AdhocEvaluation(String qrelsFile)
qrelsFile - public AdhocEvaluation(String[] qrelsFiles)
qrelsFiles - public void initialise()
public void evaluate(String resultFilename)
evaluate in class EvaluationresultFilename - String the filename of 
        the result file to evaluate.public void writeEvaluationResultOfEachQuery(String resultEvalFilename)
writeEvaluationResultOfEachQuery in class EvaluationresultEvalFilename - String the name of the file in which to 
        save the evaluation results.public void writeEvaluationResult(PrintWriter out)
writeEvaluationResult in class Evaluationout - java.io.PrintWriter the stream to which the results are printed.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow