org.terrier.applications
Class TRECQueryingExpansion

java.lang.Object
  extended by org.terrier.applications.TRECQuerying
      extended by org.terrier.applications.TRECQueryingExpansion

Deprecated. This class performs a batch mode retrieval for a set of TREC queries using query expansion.

Properties

  • c.post The term frequency normalisation parameter value used in the second-pass retrieval.
  • trec.qe.model - name of the model to use for query expansion. If unset, then one will be read from etc/qemodels
  • public class TRECQueryingExpansion
    extends TRECQuerying

    Author:
    Gianni Amati, Ben He, Vassilis Plachouras

    Nested Class Summary
     
    Nested classes/interfaces inherited from class org.terrier.applications.TRECQuerying
    TRECQuerying.NullOutputFormat, TRECQuerying.OutputFormat, TRECQuerying.QueryResultCache, TRECQuerying.QuerySource, TRECQuerying.TRECDocidOutputFormat, TRECQuerying.TRECDocnoOutputFormat
     
    Field Summary
    protected  java.lang.String qeModel
              Deprecated. The name of the query expansion model used.
     
    Fields inherited from class org.terrier.applications.TRECQuerying
    defaultQEModel, DUMP_SETTINGS, index, managerName, matchingCount, method, mModel, printer, queryexpansion, queryingManager, querySource, random, removeQueryPeriods, resultFile, resultsCache, resultsFilename, topicsParser, wModel
     
    Constructor Summary
    TRECQueryingExpansion()
              Deprecated. TRECQueryingExpansion default constructor.
    TRECQueryingExpansion(Index i)
              Deprecated. TRECQueryExpansion - Index constructor.
     
    Method Summary
     java.lang.String processQueries(double c, boolean c_set)
              Deprecated. Performs the matching using the specified weighting model from the setup.
     SearchRequest processQuery(java.lang.String queryId, java.lang.String query, double cParameter, boolean c_set)
              Deprecated. According to the given parameters, it sets up the correct matching class.
    protected  void processQueryAndWrite(java.lang.String queryId, java.lang.String query, double cParameter, boolean c_set)
              Deprecated. According to the given parameters, it sets up the correct matching class and performs retrieval for the given query.
     
    Methods inherited from class org.terrier.applications.TRECQuerying
    close, createManager, finishedQueries, getIndex, getManager, getNextQueryCounter, getOutputFormat, getQueryParser, getRandomQueryCounter, getResultFile, getResultsCache, getSequentialQueryCounter, initSearchRequestModification, loadIndex, preQueryingSearchRequestModification, printSettings, processQueries, processQueries, processQuery, processQuery, setIndex, startingBatchOfQueries
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    qeModel

    protected java.lang.String qeModel
    Deprecated. 
    The name of the query expansion model used.

    Constructor Detail

    TRECQueryingExpansion

    public TRECQueryingExpansion()
    Deprecated. 
    TRECQueryingExpansion default constructor. Calls super().


    TRECQueryingExpansion

    public TRECQueryingExpansion(Index i)
    Deprecated. 
    TRECQueryExpansion - Index constructor. Calls super(Index).

    Method Detail

    processQuery

    public SearchRequest processQuery(java.lang.String queryId,
                                      java.lang.String query,
                                      double cParameter,
                                      boolean c_set)
    Deprecated. 
    According to the given parameters, it sets up the correct matching class.

    Overrides:
    processQuery in class TRECQuerying
    Parameters:
    queryId - the identifier of a query.
    query - the query to process
    cParameter - double the term frequency normalisation parameter value
    c_set - specifies whether the given value for the parameter c should be used.

    processQueryAndWrite

    protected void processQueryAndWrite(java.lang.String queryId,
                                        java.lang.String query,
                                        double cParameter,
                                        boolean c_set)
    Deprecated. 
    According to the given parameters, it sets up the correct matching class and performs retrieval for the given query.

    Overrides:
    processQueryAndWrite in class TRECQuerying
    Parameters:
    queryId - the identifier of the query to process.
    query - org.terrier.structures.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.

    processQueries

    public java.lang.String processQueries(double c,
                                           boolean c_set)
    Deprecated. 
    Performs the matching using the specified weighting model from the setup. It parses the file with the queries (the name of the file is defined in the address_query file), creates the file of results, and for each query, gets the relevant documents, scores them, and outputs the results to the result file.

    Overrides:
    processQueries in class TRECQuerying
    Parameters:
    c - the value of the document length normalisation parameter.
    c_set - boolean specifies whether the value of the parameter c is specified.
    Returns:
    String the filename that the results have been written to


    Terrier 3.5. Copyright © 2004-2011 University of Glasgow