public abstract class Evaluation extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Evaluation.RecordA structure of a record of retrieved document. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | logger | 
| TRECQrelsInMemory | qrelsA 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.slf4j.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 Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow