public class GradedQrels extends Qrels
Representation of relevance judgments. In TREC parlance, qrels are judgments made by humans as to whether a document is relevant to an information need. Typically, qrels are created by a process known as "pooling" in large-scale system evaluations such as those at TREC.
Constructor and Description |
---|
GradedQrels(String file)
Creates a
GradedQrels object from a file |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getReldocsForQid(String qid,
boolean alsoReturnRating)
Returns the set of relevant documents for a particular information need.
|
boolean |
isRelevant(String qid,
String docid)
Determines if a document is relevant for a particular information need.
|
getQids, getReldocsForQid, helperHDFSTrainWSDTopics
public GradedQrels(String file)
GradedQrels
object from a filefile
- file that contains the relevance judgmentspublic Set<String> getReldocsForQid(String qid, boolean alsoReturnRating)
qid
- the id of the information needpublic boolean isRelevant(String qid, String docid)
isRelevant
in class Qrels
qid
- id of the information needdocid
- id of the document to testtrue
if the document is relevant to the information need