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)
Evaluation
evaluate
in interface Evaluation
resultFilename
- java.lang.String the filename of the result
file to evaluate.public void writeEvaluationResult()
Evaluation
writeEvaluationResult
in interface Evaluation
public abstract void writeEvaluationResult(PrintWriter out)
Evaluation
writeEvaluationResult
in interface Evaluation
out
- java.io.PrintWriterpublic abstract void writeEvaluationResultOfEachQuery(String evaluationResultFilename)
Evaluation
writeEvaluationResultOfEachQuery
in interface Evaluation
evaluationResultFilename
- String the name of the file in which to
save the evaluation results.public void writeEvaluationResult(String resultEvalFilename)
Evaluation
writeEvaluationResult
in interface Evaluation
resultEvalFilename
- java.lang.String the filename of
the file to output the result.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow