org.terrier.evaluation
Class AdhocFullQueryEvaluation
java.lang.Object
org.terrier.evaluation.Evaluation
org.terrier.evaluation.AdhocEvaluation
org.terrier.evaluation.AdhocFullQueryEvaluation
public class AdhocFullQueryEvaluation
- extends AdhocEvaluation
Performs a query by query evaluation of a results file. Like trec_eval -q.
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
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
-
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