Terrier IR Platform
2.2.1

uk.ac.gla.terrier.applications
Class TRECQueryingExpansion

java.lang.Object
  extended by uk.ac.gla.terrier.applications.TRECQuerying
      extended by uk.ac.gla.terrier.applications.TRECQueryingExpansion

public class TRECQueryingExpansion
extends TRECQuerying

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.
  • Version:
    $Revision: 1.52 $
    Author:
    Gianni Amati, Ben He, Vassilis Plachouras

    Constructor Summary
    TRECQueryingExpansion()
              TRECQueryingExpansion default constructor.
    TRECQueryingExpansion(Index i)
              TRECQueryExpansion - Index constructor.
     
    Method Summary
     java.lang.String processQueries(double c, boolean c_set)
              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)
              According to the given parameters, it sets up the correct matching class.
     
    Methods inherited from class uk.ac.gla.terrier.applications.TRECQuerying
    close, getIndex, getManager, getResultFile, printResults, printSettings, processQueries, processQueries, processQuery, processQuery, setIndex
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    TRECQueryingExpansion

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


    TRECQueryingExpansion

    public TRECQueryingExpansion(Index i)
    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)
    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.

    processQueries

    public java.lang.String processQueries(double c,
                                           boolean c_set)
    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 IR Platform
    2.2.1

    Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow