Package ciir.umass.edu.metric
Class MetricScorer
- java.lang.Object
-
- ciir.umass.edu.metric.MetricScorer
-
- Direct Known Subclasses:
APScorer,BestAtKScorer,DCGScorer,ERRScorer,PrecisionScorer,ReciprocalRankScorer
public abstract class MetricScorer extends java.lang.Object- Author:
- vdang A generic retrieval measure computation interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected intkThe depth parameter, or how deep of a ranked list to use to score the measure.
-
Constructor Summary
Constructors Constructor Description MetricScorer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MetricScorercopy()intgetK()The depth parameter, or how deep of a ranked list to use to score the measure.protected int[]getRelevanceLabels(RankList rl)voidloadExternalRelevanceJudgment(java.lang.String qrelFile)abstract java.lang.Stringname()abstract doublescore(RankList rl)doublescore(java.util.List<RankList> rl)voidsetK(int k)The depth parameter, or how deep of a ranked list to use to score the measure.abstract double[][]swapChange(RankList rl)
-
-
-
Method Detail
-
setK
public void setK(int k)
The depth parameter, or how deep of a ranked list to use to score the measure.- Parameters:
k- the new depth for this measure.
-
getK
public int getK()
The depth parameter, or how deep of a ranked list to use to score the measure.
-
loadExternalRelevanceJudgment
public void loadExternalRelevanceJudgment(java.lang.String qrelFile)
-
score
public double score(java.util.List<RankList> rl)
-
getRelevanceLabels
protected int[] getRelevanceLabels(RankList rl)
-
score
public abstract double score(RankList rl)
-
copy
public abstract MetricScorer copy()
-
name
public abstract java.lang.String name()
-
swapChange
public abstract double[][] swapChange(RankList rl)
-
-