public class PL extends P
i, numberOfDocuments, numberOfTokens
Constructor and Description |
---|
PL() |
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Returns the name of the model.
|
double |
score(double tf,
double documentFrequency,
double F_t,
double keyFrequency,
double documentLength)
This method provides the contract for implementing weighting models.
|
clone, setNumberOfDocuments, setNumberOfTokens, stirlingPower
public double score(double tf, double documentFrequency, double F_t, double keyFrequency, double documentLength)
P
score
in class P
tf
- The term frequency in the documentdocumentFrequency
- The document frequency of the termF_t
- the term frequency in the collectionkeyFrequency
- The normalised query term frequency.documentLength
- The length of the document.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow