|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
TRECQrelsInMemory |
qrels
A structure of all the records in the qrels files. |
Constructor Summary | |
---|---|
protected |
Evaluation()
|
protected |
Evaluation(java.lang.String qrelsFile)
|
protected |
Evaluation(java.lang.String[] qrelsFiles)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
public TRECQrelsInMemory qrels
Constructor Detail |
---|
protected Evaluation()
protected Evaluation(java.lang.String qrelsFile)
protected Evaluation(java.lang.String[] qrelsFiles)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |