Constructor and Description |
---|
IREval() |
Modifier and Type | Method and Description |
---|---|
static String |
comparisonEvaluation(SetRetrievalEvaluator baseline,
SetRetrievalEvaluator treatment,
String baselineName,
String treatmentName)
Compare two sets of retrieval results.
|
static SetRetrievalEvaluator |
create(TreeMap<String,ArrayList<RetrievalEvaluator.Document>> allRankings,
TreeMap<String,ArrayList<RetrievalEvaluator.Judgment>> allJudgments)
Creates a SetRetrievalEvaluator from data from loadRanking and loadJudgments.
|
static TreeMap<String,ArrayList<RetrievalEvaluator.Judgment>> |
loadJudgments(String filename)
Loads a TREC judgments file.
|
static TreeMap<String,ArrayList<RetrievalEvaluator.Document>> |
loadRanking(String filename)
Reads in a TREC ranking file.
|
static void |
main(String[] args)
Tool main method.
|
static String |
singleEvaluation(SetRetrievalEvaluator setEvaluator,
boolean showIndividual)
Returns an output string very similar to that of trec_eval.
|
static String |
singleQuery(String query,
RetrievalEvaluator evaluator)
Returns an output string very similar to that of trec_eval.
|
static void |
usage()
Print tool usage
|
public IREval()
public static TreeMap<String,ArrayList<RetrievalEvaluator.Judgment>> loadJudgments(String filename) throws IOException, FileNotFoundException
filename
- The filename of the judgments file to load.IOException
FileNotFoundException
public static TreeMap<String,ArrayList<RetrievalEvaluator.Document>> loadRanking(String filename) throws IOException, FileNotFoundException
filename
- The filename of the ranking file.IOException
FileNotFoundException
public static SetRetrievalEvaluator create(TreeMap<String,ArrayList<RetrievalEvaluator.Document>> allRankings, TreeMap<String,ArrayList<RetrievalEvaluator.Judgment>> allJudgments)
allRankings
- allJudgments
- public static String singleQuery(String query, RetrievalEvaluator evaluator)
query
- evaluator
- String
public static String singleEvaluation(SetRetrievalEvaluator setEvaluator, boolean showIndividual)
setEvaluator
- showIndividual
- String
public static String comparisonEvaluation(SetRetrievalEvaluator baseline, SetRetrievalEvaluator treatment, String baselineName, String treatmentName)
baseline
- treatment
- baselineName
- treatmentName
- String
.public static void usage()
public static void main(String[] args) throws IOException
args
- IOException