Terrier IR Platform
2.2.1

uk.ac.gla.terrier.matching
Interface Model

All Known Implementing Classes:
BB2, BM25, DFR_BM25, DFRee, DFRWeightingModel, DLH, DLH13, Hiemstra_LM, IFB2, In_expB2, In_expC2, InL2, LanguageModel, LemurTF_IDF, PL2, PonteCroft, TF_IDF, WeightingModel

public interface Model

This interface encapsulates all the common functionality between standard IR models (including DFR models, TF/IDF, BM25 etc), and Language Modelling models (Terrier includes PonteCroft Language Modelling model).

Version:
$Revision: 1.12 $
Author:
Craig Macdonald
See Also:
WeightingModel, LanguageModel

Method Summary
 java.lang.String getInfo()
          Returns a model dependant string, such that runs can be identified from TREC results.
 double getParameter()
          Returns the current value of the parameter set using setParameter() method.
 void setAverageDocumentLength(double n)
          Set the average document length in the collection.
 void setNumberOfDocuments(double n)
          Set the number of documents in the collection.
 void setNumberOfPointers(double n)
           
 void setNumberOfTokens(double n)
          Set the number of tokens in the whole collection.
 void setNumberOfUniqueTerms(double n)
          Set the number of unique terms in the collection.
 void setParameter(double param)
          Many models require 1 parameter to be set - this is often dependant on the corpus and the model, so should be set for each Terrier instance.
 

Method Detail

getInfo

java.lang.String getInfo()
Returns a model dependant string, such that runs can be identified from TREC results. Example PL2c2.1 would imply PL2 model, with the c parameter set to 2.1.

Returns:
The string description of the current instantiation of the weighting model.

setParameter

void setParameter(double param)
Many models require 1 parameter to be set - this is often dependant on the corpus and the model, so should be set for each Terrier instance.

Parameters:
param - double the parameter value.

setNumberOfUniqueTerms

void setNumberOfUniqueTerms(double n)
Set the number of unique terms in the collection.

Parameters:
n - double The number of unique terms in the collection.

setNumberOfTokens

void setNumberOfTokens(double n)
Set the number of tokens in the whole collection.

Parameters:
n - The number of tokens in the whole collection.

setAverageDocumentLength

void setAverageDocumentLength(double n)
Set the average document length in the collection.

Parameters:
n - The average document length in the collection.

setNumberOfDocuments

void setNumberOfDocuments(double n)
Set the number of documents in the collection.

Parameters:
n - The number of documents in the collection.

setNumberOfPointers

void setNumberOfPointers(double n)

getParameter

double getParameter()
Returns the current value of the parameter set using setParameter() method.


Terrier IR Platform
2.2.1

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