|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.evaluation.Evaluation
public abstract class Evaluation
An abstract class for evaluating the retrieval results.
Nested Class Summary | |
---|---|
static class |
Evaluation.Record
A structure of a record of retrieved document. |
Field Summary | |
---|---|
TRECQrelsInMemory |
qrels
A structure of all the records in the qrels files. |
Constructor Summary | |
---|---|
Evaluation()
|
Method Summary | |
---|---|
abstract void |
evaluate(java.lang.String resultFilename)
Evaluates the given result file for the given qrels file. |
void |
writeEvaluationResult()
Output the evaluation result to standard output |
abstract void |
writeEvaluationResult(java.io.PrintWriter out)
The abstract method that evaluates and prints the results. |
void |
writeEvaluationResult(java.lang.String resultEvalFilename)
Output the evaluation result to the specific file. |
abstract void |
writeEvaluationResultOfEachQuery(java.lang.String evaluationResultFilename)
Output the evaluation result of each query to the specific file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public TRECQrelsInMemory qrels
Constructor Detail |
---|
public Evaluation()
Method Detail |
---|
public abstract void evaluate(java.lang.String resultFilename)
resultFilename
- java.lang.String the filename of the result
file to evaluate.public void writeEvaluationResult()
public abstract void writeEvaluationResult(java.io.PrintWriter out)
out
- java.io.PrintWriterpublic abstract void writeEvaluationResultOfEachQuery(java.lang.String evaluationResultFilename)
evaluationResultFilename
- String the name of the file in which to
save the evaluation results.public void writeEvaluationResult(java.lang.String resultEvalFilename)
resultEvalFilename
- java.lang.String the filename of
the file to output the result.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |