|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for information needed in Information Retrieval Tests. It provides a set of documents, a set of queries and a way of knowing which documents go with which queries.
PrecisionRecall
Method Summary | |
TermVector[] |
allQueries()
A set of queries for this packet |
java.lang.String[] |
allQueryTerms()
Return an array of all the terms occurring in the the queries. |
int[] |
docsForQuery(int queryNum,
int num)
Given a query number (index into array returned by allQueries()), return an index into the document set of all the documents which should be retrieved for the given query. |
DocumentSet |
documentSet()
The set of documents for this packet |
int[][] |
queryToDocMapping()
A map from the array returned by allQueries() to the document set. |
int[] |
relatedDocs(int docNum)
Given an index into the document set, return all the documents that are "related" to that document. |
Method Detail |
public DocumentSet documentSet()
public TermVector[] allQueries()
public int[] docsForQuery(int queryNum, int num)
public int[] relatedDocs(int docNum)
public int[][] queryToDocMapping()
queryToDocMapping[x][y]
where x=0 to allQueries().length
and y=0 to the number
of relevant documents for this query
public java.lang.String[] allQueryTerms()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |