|
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.applications.TRECQuerying
public class TRECQuerying
This class performs a batch mode retrieval from a set of TREC queries.
Constructor Summary | |
---|---|
TRECQuerying()
TRECQuerying default constructor initialises the inverted index, the lexicon and the document index structures. |
|
TRECQuerying(Index i)
TRECQuerying constructor initialises the specified inverted index, the lexicon and the document index structures. |
Method Summary | |
---|---|
void |
close()
Closes the used structures. |
Index |
getIndex()
Get the index pointer. |
Manager |
getManager()
Get the querying manager. |
java.io.PrintWriter |
getResultFile(java.lang.String predefinedName)
Returns a PrintWriter used to store the results. |
void |
printResults(java.io.PrintWriter pw,
SearchRequest q)
Prints the results for the given search request, using the specified destination. |
void |
printSettings(SearchRequest default_q,
java.lang.String[] topicsFiles,
java.lang.String otherComments)
prints the current settings to a file with the same name as the current results file. |
java.lang.String |
processQueries()
Performs the matching using the specified weighting model from the setup and possibly a combination of evidence mechanism. |
java.lang.String |
processQueries(double c)
Performs the matching using the specified weighting model from the setup and possibly a combination of evidence mechanism. |
java.lang.String |
processQueries(double c,
boolean c_set)
Performs the matching using the specified weighting model from the setup and possibly a combination of evidence mechanism. |
SearchRequest |
processQuery(java.lang.String queryId,
java.lang.String query)
According to the given parameters, it sets up the correct matching class and performs retrieval for the given query. |
SearchRequest |
processQuery(java.lang.String queryId,
java.lang.String query,
double cParameter)
According to the given parameters, it sets up the correct matching class and performs retrieval for the given query. |
SearchRequest |
processQuery(java.lang.String queryId,
java.lang.String query,
double cParameter,
boolean c_set)
According to the given parameters, it sets up the correct matching class and performs retrieval for the given query. |
void |
setIndex(Index i)
Set the index pointer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TRECQuerying()
public TRECQuerying(Index i)
i
- The specified index.Method Detail |
---|
public Index getIndex()
public void setIndex(Index i)
i
- The index pointer.public Manager getManager()
public void close()
public java.io.PrintWriter getResultFile(java.lang.String predefinedName)
predefinedName
- java.lang.String a non-standard prefix for the result file.
public SearchRequest processQuery(java.lang.String queryId, java.lang.String query)
queryId
- the identifier of the query to process.query
- the query to process.public SearchRequest processQuery(java.lang.String queryId, java.lang.String query, double cParameter)
queryId
- the identifier of the query to process.query
- the query to process.cParameter
- double the value of the parameter to use.public SearchRequest processQuery(java.lang.String queryId, java.lang.String query, double cParameter, boolean c_set)
queryId
- the identifier of the query to process.query
- the query to process.cParameter
- double the value of the parameter to use.c_set
- boolean specifies whether the parameter c is set.public java.lang.String processQueries()
public java.lang.String processQueries(double c)
c
- double the value of the term frequency parameter to use.
public java.lang.String processQueries(double c, boolean c_set)
Queries
Queries are parse from a file. The filename can
be expressed in the trec.topics property, or else the file named
in the property trec.topics.list property is read, and the each
file in that is used for queries.
c
- the value of c.c_set
- specifies whether a value for c has been specified.
public void printSettings(SearchRequest default_q, java.lang.String[] topicsFiles, java.lang.String otherComments)
public void printResults(java.io.PrintWriter pw, SearchRequest q)
pw
- PrintWriter the destination where to save the results.q
- SearchRequest the object encapsulating the query and the results.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |