public class ExperimentRated extends Experiment
Modifier and Type | Field and Description |
---|---|
static int |
NDCGlimit
The maximum N for computing NDCG @ N
|
double[] |
NDCGvalues
Current sum of NDCG values @ all levels up to NDCGlimit
Updated when processing each query.
|
java.util.Map<java.lang.String,java.lang.Double> |
ratingsMap
HashMap that stores the mapping of document names to their gold-standard relevance ratings
|
corpusDir, outFile, queryFile, RECALL_LEVELS
Constructor and Description |
---|
ExperimentRated(java.io.File corpusDir,
java.io.File queryFile,
java.io.File outFile,
short docType,
boolean stem)
Constructor that just calls the Experiment constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Evaluate retrieval performance on a given query test corpus and
generate a recall/precision graph and table of NDCG results.
|
makeRpCurve
public java.util.Map<java.lang.String,java.lang.Double> ratingsMap
public static int NDCGlimit
public double[] NDCGvalues
public ExperimentRated(java.io.File corpusDir, java.io.File queryFile, java.io.File outFile, short docType, boolean stem) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException