QUERY
- Type of queryDOCUMENT
- Type of documentpublic class PrecisionAtN<QUERY,DOCUMENT extends Identifiable> extends Object implements RetrievalAnalyser<PrecisionAtNResult<QUERY>,QUERY,DOCUMENT>
RetrievalAnalyser
that computes the precision after N documents have
been retrieved (P@N).Modifier and Type | Field and Description |
---|---|
protected int |
N |
Constructor and Description |
---|
PrecisionAtN(int n)
Construct with the given N.
|
Modifier and Type | Method and Description |
---|---|
PrecisionAtNResult<QUERY> |
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 int N
public PrecisionAtN(int n)
n
- N, the number of top-ranked documents to consider.public PrecisionAtNResult<QUERY> analyse(Map<QUERY,List<DOCUMENT>> results, Map<QUERY,Set<DOCUMENT>> relevant)
RetrievalAnalyser
RetrievalEngine
against a
ground-truth set of relevant results and produce an
AnalysisResult
which can be read by a human.analyse
in interface RetrievalAnalyser<PrecisionAtNResult<QUERY>,QUERY,DOCUMENT extends Identifiable>
results
- the results per query from the RetrievalEngine
.relevant
- the ground-truth relevant documents per query.