public class ParallelTRECQuerying extends TRECQuerying
TRECQuerying.Command
AbstractQuerying.AbstractQueryingCommand
BATCHRETRIEVE_COMMAND, BATCHRETRIEVE_PROP_PREFIX, defaultQEModel, DUMP_SETTINGS, indexref, ITERATION, logger, method, mModel, printer, queryingManager, querySource, random, removeQueryPeriods, resultFile, resultFileRaw, RESULTS_LENGTH, resultsCache, resultsFilename
controls, matchingCount, matchopQl
Constructor and Description |
---|
ParallelTRECQuerying() |
ParallelTRECQuerying(boolean _queryexpansion) |
ParallelTRECQuerying(IndexRef i) |
Modifier and Type | Method and Description |
---|---|
protected void |
createManager()
Create a querying manager.
|
protected void |
finishedQueries()
After finishing with a batch of queries, close the result file
|
PrintWriter |
getResultFile(String predefinedName)
Returns a PrintWriter used to store the results.
|
static void |
main(String[] args) |
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.
|
protected void |
processQueryAndWrite(String queryId,
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.
|
close, getIndexRef, getManager, getNextQueryCounter, getOutputFormat, getQueryParser, getRandomQueryCounter, getResultsCache, getSequentialQueryCounter, getTopicsParser, initSearchRequestModification, intialise, loadIndex, preQueryingSearchRequestModification, printSettings, processQueries, processQueries, processQuery, processQuery, processQuery, setTopicsParser, startingBatchOfQueries
public ParallelTRECQuerying()
public ParallelTRECQuerying(IndexRef i)
public ParallelTRECQuerying(boolean _queryexpansion)
protected void createManager()
AbstractQuerying
createManager
in class TRECQuerying
protected void processQueryAndWrite(String queryId, String query, double cParameter, boolean c_set)
TRECQuerying
processQueryAndWrite
in class TRECQuerying
queryId
- the identifier of the query to process.query
- the query to process.cParameter
- double the value of the parameter to use.c_set
- A boolean variable indicating if cParameter has been
specified.protected void finishedQueries()
TRECQuerying
finishedQueries
in class TRECQuerying
public PrintWriter getResultFile(String predefinedName)
TRECQuerying
getResultFile
in class TRECQuerying
predefinedName
- java.lang.String a non-standard prefix for the result file.public String processQueries(double c, boolean c_set)
TRECQuerying
Queries
Queries are parsed from file, specified by the trec.topics property
(comma delimited)
processQueries
in class TRECQuerying
c
- the value of c.c_set
- specifies whether a value for c has been specified.public static void main(String[] args)
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow