QUERY - Type of queryDOCUMENT - Type of documentpublic class IREvalAnalyser<QUERY,DOCUMENT extends Identifiable> extends Object implements RetrievalAnalyser<IREvalResult,QUERY,DOCUMENT>
RetrievalEngine. Retrieval statistics are calculated using
IREval.
If the retrieved documents are instances of Ranked, then the rank is
determined through Ranked.getRank(), otherwise the rank of each
result document is automatically determined from its position in the results
list.
Similarly, if the retrieved documents are instances of Scored, then
the score is determined through Scored.getScore(), otherwise the
score of each result document is set as 1.0/rank.
If the queries are Identifiable, then the query ids in the outputted
SetRetrievalEvaluator are the ID of the query; if the queries are not
Identifiable, then the Object.toString() method is used
instead.
| Constructor and Description |
|---|
IREvalAnalyser() |
| Modifier and Type | Method and Description |
|---|---|
IREvalResult |
analyse(Map<QUERY,List<DOCUMENT>> results,
Map<QUERY,Set<DOCUMENT>> relevant)
Analyse ranked results from a
RetrievalEngine against a
ground-truth set of relevant results and produce an
AnalysisResult which can be read by a human. |
protected static <Q,D extends Identifiable> |
convertRelevant(Map<Q,Set<D>> relevant) |
protected static <Q,D extends Identifiable> |
convertResults(Map<Q,List<D>> results) |
public IREvalAnalyser()
protected static <Q,D extends Identifiable> TreeMap<String,ArrayList<RetrievalEvaluator.Document>> convertResults(Map<Q,List<D>> results)
protected static <Q,D extends Identifiable> TreeMap<String,ArrayList<RetrievalEvaluator.Judgment>> convertRelevant(Map<Q,Set<D>> relevant)
public IREvalResult analyse(Map<QUERY,List<DOCUMENT>> results, Map<QUERY,Set<DOCUMENT>> relevant)
RetrievalAnalyserRetrievalEngine against a
ground-truth set of relevant results and produce an
AnalysisResult which can be read by a human.analyse in interface RetrievalAnalyser<IREvalResult,QUERY,DOCUMENT extends Identifiable>results - the results per query from the RetrievalEngine.relevant - the ground-truth relevant documents per query.