public class Qrels extends Object
Representation of relevance judgments. In TREC parlance, qrels are judgments made by humans as to whether a document is relevant to an information need (i.e., topic). Typically, qrels are created by a process known as "pooling" in large-scale system evaluations such as those at TREC.
| Constructor and Description |
|---|
Qrels(String file)
Creates a
Qrels object from a file |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getQids()
Returns a set containing the topic ids.
|
Set<String> |
getReldocsForQid(String qid)
Returns the set of relevant documents for a topic.
|
float |
helperHDFSTrainWSDTopics()
Used with RunQueryHDFSTrainWSD class
|
boolean |
isRelevant(String qid,
String docid)
Determines if a document is relevant for a topic.
|
public Qrels(String file)
Qrels object from a filefile - file containing qrelspublic Set<String> getQids()
public Set<String> getReldocsForQid(String qid)
qid - topic idpublic float helperHDFSTrainWSDTopics()