public abstract class TerrierEvaluation extends Object implements Evaluation
| Modifier and Type | Class and Description |
|---|---|
static class |
TerrierEvaluation.Record
A structure of a record of retrieved document.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
TRECQrelsInMemory |
qrels
A structure of all the records in the qrels files.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TerrierEvaluation() |
protected |
TerrierEvaluation(String qrelsFile) |
protected |
TerrierEvaluation(String[] qrelsFiles) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
evaluate(String resultFilename)
Evaluates the given result file for the given qrels file.
|
void |
writeEvaluationResult()
Output the evaluation result to standard output
|
abstract void |
writeEvaluationResult(PrintWriter out)
The abstract method that evaluates and prints
the results.
|
void |
writeEvaluationResult(String resultEvalFilename)
Output the evaluation result to the specific file.
|
abstract void |
writeEvaluationResultOfEachQuery(String evaluationResultFilename)
Output the evaluation result of each query to the specific file.
|
protected static final org.slf4j.Logger logger
public TRECQrelsInMemory qrels
protected TerrierEvaluation()
protected TerrierEvaluation(String qrelsFile)
protected TerrierEvaluation(String[] qrelsFiles)
public abstract void evaluate(String resultFilename)
Evaluationevaluate in interface EvaluationresultFilename - java.lang.String the filename of the result
file to evaluate.public void writeEvaluationResult()
EvaluationwriteEvaluationResult in interface Evaluationpublic abstract void writeEvaluationResult(PrintWriter out)
EvaluationwriteEvaluationResult in interface Evaluationout - java.io.PrintWriterpublic abstract void writeEvaluationResultOfEachQuery(String evaluationResultFilename)
EvaluationwriteEvaluationResultOfEachQuery in interface EvaluationevaluationResultFilename - String the name of the file in which to
save the evaluation results.public void writeEvaluationResult(String resultEvalFilename)
EvaluationwriteEvaluationResult in interface EvaluationresultEvalFilename - java.lang.String the filename of
the file to output the result.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow