Package org.terrier.evaluation
Class AdhocFullQueryEvaluation
- java.lang.Object
-
- org.terrier.evaluation.TerrierEvaluation
-
- org.terrier.evaluation.AdhocEvaluation
-
- org.terrier.evaluation.AdhocFullQueryEvaluation
-
- All Implemented Interfaces:
Evaluation
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.TerrierEvaluation
TerrierEvaluation.Record
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.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.TerrierEvaluation
qrels
-
-
Constructor Summary
Constructors Constructor Description AdhocFullQueryEvaluation()
Create full query adhoc evaluationAdhocFullQueryEvaluation(java.lang.String qrelsFile)
Create full query adhoc evaluationAdhocFullQueryEvaluation(java.lang.String[] qrelsFiles)
Create full query adhoc evaluation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.TerrierEvaluation
writeEvaluationResult, writeEvaluationResult
-
-
-
-
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.
-
-