public class Hiemstra_LM extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
Constructor and Description |
---|
Hiemstra_LM()
A default constructor.
|
Hiemstra_LM(double lambda)
Constructs an instance of this class with the
specified value for the parameter lambda.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Returns the name of the model.
|
double |
score(double tf,
double docLength)
Uses Hiemestra_LM to compute a weight for a term in a document.
|
double |
score(double tf,
double docLength,
double n_t,
double F_t,
double keyFrequency)
Deprecated.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
public Hiemstra_LM()
public Hiemstra_LM(double lambda)
lambda
- the smoothing parameter.public final String getInfo()
getInfo
in interface Model
getInfo
in class WeightingModel
public final double score(double tf, double docLength)
score
in class WeightingModel
tf
- The term frequency in the documentdocLength
- the document's length@Deprecated public final double score(double tf, double docLength, double n_t, double F_t, double keyFrequency)
score
in class WeightingModel
tf
- The term frequency in the documentdocLength
- the document's lengthn_t
- The document frequency of the termF_t
- the term frequency in the collectionkeyFrequency
- the term frequency in the queryTerrier 4.0. Copyright © 2004-2014 University of Glasgow