public class NamedPageEvaluation extends Evaluation
Evaluation.Record
Modifier and Type | Field and Description |
---|---|
protected double |
arr
The average reciprocal rank.
|
protected int |
inTop1
The number of queries where the answer is found in the top first rank.
|
protected int |
inTop10
The number of queries where the answer is found in the top 10 docs.
|
protected int |
inTop20
The number of queries for which the answer is found in the top 20 docs.
|
protected int |
inTop5
The number of queries where the answer is found in the top 5 docs.
|
protected int |
inTop50
The number of queries where the answer is found in the top 50 docs.
|
protected int |
notInTop50
The number of queries where the answer was not found in the top 50 documents.
|
protected int |
numberOfQueries
total number of queries.
|
protected gnu.trove.TIntHashSet |
queryNumbers
The query numbers' vector.
|
protected gnu.trove.TIntIntHashMap |
rankRelevantDocument
the rank of the correct answer for each query evaluated.
|
protected gnu.trove.TIntDoubleHashMap |
recipRank
The reciprocal rank of each query.
|
logger, qrels
Constructor and Description |
---|
NamedPageEvaluation() |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(String resultFilename)
Evaluates the given result file.
|
void |
writeEvaluationResult(PrintWriter out)
Output the evaluation result to the specific file.
|
void |
writeEvaluationResultOfEachQuery(String resultEvalFilename)
Output the evaluation result of each query to the specific file.
|
writeEvaluationResult, writeEvaluationResult
protected double arr
protected int numberOfQueries
protected gnu.trove.TIntIntHashMap rankRelevantDocument
protected int inTop50
protected int inTop20
protected int inTop10
protected int inTop5
protected int inTop1
protected int notInTop50
protected gnu.trove.TIntHashSet queryNumbers
protected gnu.trove.TIntDoubleHashMap recipRank
public void evaluate(String resultFilename)
evaluate
in class Evaluation
resultFilename
- String the filename
of the result file to evaluate.public void writeEvaluationResultOfEachQuery(String resultEvalFilename)
writeEvaluationResultOfEachQuery
in class Evaluation
resultEvalFilename
- String the name of the file in which to
save the evaluation results.public void writeEvaluationResult(PrintWriter out)
writeEvaluationResult
in class Evaluation
out
- PrintWriter the name of the stream to output the result.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow