public abstract class Evaluation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Evaluation.Record
A structure of a record of retrieved document.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
TRECQrelsInMemory |
qrels
A structure of all the records in the qrels files.
|
Modifier | Constructor and Description |
---|---|
protected |
Evaluation() |
protected |
Evaluation(String qrelsFile) |
protected |
Evaluation(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.apache.log4j.Logger logger
public TRECQrelsInMemory qrels
protected Evaluation()
protected Evaluation(String qrelsFile)
protected Evaluation(String[] qrelsFiles)
public abstract void evaluate(String resultFilename)
resultFilename
- java.lang.String the filename of the result
file to evaluate.public void writeEvaluationResult()
public abstract void writeEvaluationResult(PrintWriter out)
out
- java.io.PrintWriterpublic abstract void writeEvaluationResultOfEachQuery(String evaluationResultFilename)
evaluationResultFilename
- String the name of the file in which to
save the evaluation results.public void writeEvaluationResult(String resultEvalFilename)
resultEvalFilename
- java.lang.String the filename of
the file to output the result.Terrier 4.0. Copyright © 2004-2014 University of Glasgow