public class TrecEvalEvaluation extends Object implements Evaluation
Modifier and Type | Class and Description |
---|---|
static class |
TrecEvalEvaluation.Command |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected String[][] |
output |
Constructor and Description |
---|
TrecEvalEvaluation(String qrels) |
TrecEvalEvaluation(String[] qrels) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(String resultFilename)
Evaluates the given result file for the given qrels file.
|
static boolean |
isPlatformSupported() |
void |
writeEvaluationResult()
Output the evaluation result to standard output
|
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.
|
void |
writeEvaluationResultOfEachQuery(String evaluationResultFilename)
Output the evaluation result of each query to the specific file.
|
protected static final org.slf4j.Logger logger
protected String[][] output
public TrecEvalEvaluation(String[] qrels)
public TrecEvalEvaluation(String qrels)
public 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 void writeEvaluationResult(PrintWriter out)
Evaluation
writeEvaluationResult
in interface Evaluation
out
- java.io.PrintWriterpublic 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.public static boolean isPlatformSupported()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow