RESULT
- Type of analysed dataDOCUMENT
- Type of documentsQUERY
- Type of querypublic class RetrievalEvaluator<RESULT extends AnalysisResult,DOCUMENT extends Identifiable,QUERY> extends Object implements Evaluator<Map<QUERY,List<DOCUMENT>>,RESULT>
Evaluator
for the evaluation of retrieval
experiments using the Cranfield methodology.Modifier and Type | Field and Description |
---|---|
protected RetrievalAnalyser<RESULT,QUERY,DOCUMENT> |
analyser |
protected RetrievalEngine<DOCUMENT,QUERY> |
engine |
protected Collection<QUERY> |
queries |
protected Map<QUERY,Set<DOCUMENT>> |
relevant |
Constructor and Description |
---|
RetrievalEvaluator(Map<QUERY,List<DOCUMENT>> results,
Map<QUERY,Set<DOCUMENT>> relevant,
RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
Construct a new
RetrievalEvaluator with the given ranked results
lists and sets of relevant documents for each query, and a
RetrievalAnalyser to analyse the results. |
RetrievalEvaluator(RetrievalEngine<DOCUMENT,QUERY> engine,
Collection<QUERY> queries,
Map<QUERY,Set<DOCUMENT>> relevant,
RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
Construct a new
RetrievalEvaluator with a search engine, a set of
queries to perform, relevant documents for each query, and a
RetrievalAnalyser to analyse the results. |
RetrievalEvaluator(RetrievalEngine<DOCUMENT,QUERY> engine,
Map<QUERY,Set<DOCUMENT>> relevant,
RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
Construct a new
RetrievalEvaluator with a search engine, relevant
documents for each query, and a RetrievalAnalyser to analyse the
results. |
Modifier and Type | Method and Description |
---|---|
RESULT |
analyse(Map<QUERY,List<DOCUMENT>> results)
Analyse the raw data produced by a call to
Evaluator.evaluate() and return the analysed data. |
Map<QUERY,List<DOCUMENT>> |
evaluate()
Run, or evaluate the system, returning the raw data.
|
protected RetrievalEngine<DOCUMENT extends Identifiable,QUERY> engine
protected Collection<QUERY> queries
protected RetrievalAnalyser<RESULT extends AnalysisResult,QUERY,DOCUMENT extends Identifiable> analyser
public RetrievalEvaluator(RetrievalEngine<DOCUMENT,QUERY> engine, Collection<QUERY> queries, Map<QUERY,Set<DOCUMENT>> relevant, RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
RetrievalEvaluator
with a search engine, a set of
queries to perform, relevant documents for each query, and a
RetrievalAnalyser
to analyse the results.engine
- the query enginequeries
- the queriesrelevant
- the relevant documents for each queryanalyser
- the analyserpublic RetrievalEvaluator(RetrievalEngine<DOCUMENT,QUERY> engine, Map<QUERY,Set<DOCUMENT>> relevant, RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
RetrievalEvaluator
with a search engine, relevant
documents for each query, and a RetrievalAnalyser
to analyse the
results. The queries are determined automatically from the keys of the
map of relevant documents.engine
- the query enginerelevant
- the relevant documents for each queryanalyser
- the analyserpublic RetrievalEvaluator(Map<QUERY,List<DOCUMENT>> results, Map<QUERY,Set<DOCUMENT>> relevant, RetrievalAnalyser<RESULT,QUERY,DOCUMENT> analyser)
RetrievalEvaluator
with the given ranked results
lists and sets of relevant documents for each query, and a
RetrievalAnalyser
to analyse the results.
Internally, this constructor wraps a simple RetrievalEngine
implementation around the results, and determines the set of queries from
the keys of the relevant document map.
results
- the ranked results per queryrelevant
- the relevant results per queryanalyser
- the analyserpublic Map<QUERY,List<DOCUMENT>> evaluate()
Evaluator
evaluate
in interface Evaluator<Map<QUERY,List<DOCUMENT extends Identifiable>>,RESULT extends AnalysisResult>
public RESULT analyse(Map<QUERY,List<DOCUMENT>> results)
Evaluator
Evaluator.evaluate()
and return the analysed data.analyse
in interface Evaluator<Map<QUERY,List<DOCUMENT extends Identifiable>>,RESULT extends AnalysisResult>
results
- the raw data.