|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.evaluation.TRECQrelsInMemory.QrelsHashSet
public static class TRECQrelsInMemory.QrelsHashSet
Models the set of relevant documents for one query.
Field Summary | |
---|---|
gnu.trove.THashSet<java.lang.String> |
nonRelDocnos
The ids of the pooled non-relevant documents. |
java.lang.String |
queryid
The identifier of the query. |
gnu.trove.TIntHashSet |
relGrade
All relevance grades indicated in the qrels. |
gnu.trove.TIntObjectHashMap<gnu.trove.THashSet<java.lang.String>> |
relGradeDocnosMap
A hashmap from the relevance grade to a hashset containing ids of documents with the given relevance grade. |
Constructor Summary | |
---|---|
TRECQrelsInMemory.QrelsHashSet(java.lang.String queryid)
Creates the an instance of the class with a given query identifier. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of the current instance of the class. |
gnu.trove.THashSet<java.lang.String> |
getAllRelevantDocuments()
Get all relevant documents regardless of their relevance grades. |
java.lang.String[] |
getAllRelevantDocumentsToArray()
Get all relevant documents regardless of their relevance grades. |
gnu.trove.THashSet<java.lang.String> |
getRelevantDocuments(int grade)
Get the relevant documents for a given relevance grade. |
java.lang.String[] |
getRelevantDocumentsToArray(int grade)
Get the relevant documents for a given relevance grade. |
void |
insertNonRelDocno(java.lang.String docno)
|
void |
insertRelDocno(java.lang.String docno,
int grade)
Add an identifier of a relevant document with its relevance grade. |
boolean |
isRelevant(java.lang.String docno)
Check if a given document is relevant to the associated query. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String queryid
public gnu.trove.TIntHashSet relGrade
public gnu.trove.THashSet<java.lang.String> nonRelDocnos
public gnu.trove.TIntObjectHashMap<gnu.trove.THashSet<java.lang.String>> relGradeDocnosMap
Constructor Detail |
---|
public TRECQrelsInMemory.QrelsHashSet(java.lang.String queryid)
queryid
- String the query identifier.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isRelevant(java.lang.String docno)
docno
- The identifier of the given document.
public java.lang.String[] getAllRelevantDocumentsToArray()
public gnu.trove.THashSet<java.lang.String> getAllRelevantDocuments()
public java.lang.String[] getRelevantDocumentsToArray(int grade)
grade
- The given relevance grade.
public gnu.trove.THashSet<java.lang.String> getRelevantDocuments(int grade)
grade
- The given relevance grade.
public void insertRelDocno(java.lang.String docno, int grade)
docno
- The identifier of the given relevant document.grade
- The relevance grade of the given relevant document.public void insertNonRelDocno(java.lang.String docno)
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |