public class ParallelTRECQuerying extends TRECQuerying implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ParallelTRECQuerying.Command |
AbstractQuerying.AbstractQueryingCommand
BATCHRETRIEVE_COMMAND, BATCHRETRIEVE_PROP_PREFIX, defaultQEModel, DUMP_SETTINGS, ITERATION, logger, method, mModel, printer, queryingManager, querySource, random, removeQueryPeriods, resultFile, resultFileRaw, RESULTS_LENGTH, resultsCache, resultsFilename
controls, 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, startingBatchOfQueries
controls
public ParallelTRECQuerying()
public ParallelTRECQuerying(IndexRef i)
@Deprecated public ParallelTRECQuerying(boolean _queryexpansion)
protected void createManager()
AbstractQuerying
createManager
in class TRECQuerying
protected void processQueryAndWrite(String queryId, String query)
TRECQuerying
processQueryAndWrite
in class TRECQuerying
queryId
- the identifier of the query to process.query
- the query to process.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()
TRECQuerying
Queries
Queries are parsed from file, specified by the trec.topics property
(comma delimited)
processQueries
in class TRECQuerying
public void close()
TRECQuerying
close
in interface Closeable
close
in interface AutoCloseable
close
in class TRECQuerying
public static void main(String[] args)
Terrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow