public class MDL2 extends WeightingModel
Properties
:If you use this model, please cite V. Plachouras and I. Ounis, Multinomial Randomness Models for Retrieval with Document Fields, In Proc. ECIR 2007.
| Modifier and Type | Field and Description | 
|---|---|
| protected int | fieldCount | 
| protected int[] | fieldTermFrequencies | 
| protected double[] | fieldWeights | 
| protected double[] | p | 
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description | 
|---|
| MDL2() | 
| MDL2(String[] parameters)Constructs an instance of MDL2. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getInfo()Returns the name of the model. | 
| void | prepare()prepare | 
| double | score(double tf,
     double docLength)This method provides the contract for implementing weighting models. | 
| double | score(Posting _p)Returns score | 
| void | setCollectionStatistics(CollectionStatistics _cs)Sets collection statistics | 
| void | setEntryStatistics(EntryStatistics _es)Sets entry statistics. | 
clone, getOverflowed, getParameter, setKeyFrequency, setParameter, setRequestprotected int fieldCount
protected double[] fieldWeights
protected double[] p
protected int[] fieldTermFrequencies
public MDL2(String[] parameters) throws Exception
parameters - Exceptionpublic MDL2()
public String getInfo()
WeightingModelgetInfo in interface ModelgetInfo in class WeightingModelpublic void prepare()
WeightingModelprepare in class WeightingModelpublic void setCollectionStatistics(CollectionStatistics _cs)
WeightingModelsetCollectionStatistics in class WeightingModelpublic void setEntryStatistics(EntryStatistics _es)
setEntryStatistics in class WeightingModelpublic double score(Posting _p)
score in class WeightingModelpublic double score(double tf,
           double docLength)
WeightingModelscore in class WeightingModeltf - The term frequency in the documentdocLength - the document's lengthTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow