public class ParallelTRECQuerying extends TRECQuerying implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelTRECQuerying.Command |
AbstractQuerying.AbstractQueryingCommandBATCHRETRIEVE_COMMAND, BATCHRETRIEVE_PROP_PREFIX, defaultQEModel, DUMP_SETTINGS, ITERATION, logger, method, mModel, printer, queryingManager, querySource, random, removeQueryPeriods, resultFile, resultFileRaw, RESULTS_LENGTH, resultsCache, resultsFilenamecontrols, indexref, matchingCount, matchopQl| Constructor and Description |
|---|
ParallelTRECQuerying() |
ParallelTRECQuerying(boolean _queryexpansion)
Deprecated.
|
ParallelTRECQuerying(IndexRef i) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the used structures.
|
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()
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)
According to the given parameters, it sets up the correct matching class
and performs retrieval for the given query.
|
getIndexRef, getManager, getNextQueryCounter, getOutputFormat, getQueryParser, getRandomQueryCounter, getResultsCache, getSequentialQueryCounter, getTopicsParser, initSearchRequestModification, intialise, loadIndex, preQueryingSearchRequestModification, printSettings, processQueries, processQuery, setTopicsParser, startingBatchOfQueriescontrolspublic ParallelTRECQuerying()
public ParallelTRECQuerying(IndexRef i)
@Deprecated public ParallelTRECQuerying(boolean _queryexpansion)
protected void createManager()
AbstractQueryingcreateManager in class TRECQueryingprotected void processQueryAndWrite(String queryId, String query)
TRECQueryingprocessQueryAndWrite in class TRECQueryingqueryId - the identifier of the query to process.query - the query to process.protected void finishedQueries()
TRECQueryingfinishedQueries in class TRECQueryingpublic PrintWriter getResultFile(String predefinedName)
TRECQueryinggetResultFile in class TRECQueryingpredefinedName - java.lang.String a non-standard prefix for the result file.public String processQueries()
TRECQuerying
Queries
Queries are parsed from file, specified by the trec.topics property
(comma delimited)
processQueries in class TRECQueryingpublic void close()
TRECQueryingclose in interface Closeableclose in interface AutoCloseableclose in class TRECQueryingpublic static void main(String[] args)
Terrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow