Package org.terrier.matching.models
Class DFReeKLIM
- java.lang.Object
-
- org.terrier.matching.models.WeightingModel
-
- org.terrier.matching.models.DFReeKLIM
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Model
public class DFReeKLIM extends WeightingModel
This class implements the DFReeKLIM weighting model. DFReeKLIM stands for a DFR model free from parameters. DFReeKLIM is the inner product of two KL Information Measures. Appeared in the paper: FUB, IASI-CNR, UNIVAQ at Microblogging Track of TREC 2011 G. Amati, G. Amodeo, M. Bianchi, G. Marcone, Fondazione Ugo Bordoni G.Amodeo, C. Gaibisso, G. Gambosi, IASI-CNR A. Celi, C. De Nicola, M. Flammini, Univ. dell' Aquila- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.terrier.matching.models.WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfPostings, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()Returns the name of the model, in this case "DFReeKLIM"doublescore(double tf, double docLength)Uses DFReeKLIM to compute a weight for a term in a document.doublescore(double tf, double docLength, double documentFrequency, double termFrequency, double keyFrequency)Uses DFReeKLIM to compute a weight for a term in a document.-
Methods inherited from class org.terrier.matching.models.WeightingModel
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
-
-
-
-
Method Detail
-
getInfo
public final java.lang.String getInfo()
Returns the name of the model, in this case "DFReeKLIM"- Specified by:
getInfoin interfaceModel- Specified by:
getInfoin classWeightingModel- Returns:
- the name of the model
-
score
public final double score(double tf, double docLength)Uses DFReeKLIM to compute a weight for a term in a document.- Specified by:
scorein classWeightingModel- Parameters:
tf- The term frequency of the term in the documentdocLength- the document's length- Returns:
- the score assigned to a document with the given tf and docLength, and other preset parameters
-
score
public final double score(double tf, double docLength, double documentFrequency, double termFrequency, double keyFrequency)Uses DFReeKLIM to compute a weight for a term in a document.- Parameters:
tf- The term frequency of the term in the documentdocLength- the document's lengthdocumentFrequency- The document frequency of the term (ignored)termFrequency- the term frequency in the collection (ignored)keyFrequency- the term frequency in the query (ignored).- Returns:
- the score assigned by the weighting model DFReeKLIM.
-
-