Class PL
- java.lang.Object
-
- org.terrier.matching.models.basicmodel.BasicModel
-
- org.terrier.matching.models.basicmodel.P
-
- org.terrier.matching.models.basicmodel.PL
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class PL extends P
This class implements the PL weighting model.- Since:
- 3.0
- Author:
- Gianni Amati, Ben He, Vassilis Plachouras
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.terrier.matching.models.basicmodel.BasicModel
i, numberOfDocuments, numberOfTokens
-
-
Constructor Summary
Constructors Constructor Description PL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.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.-
Methods inherited from class org.terrier.matching.models.basicmodel.BasicModel
clone, setNumberOfDocuments, setNumberOfTokens, stirlingPower
-
-
-
-
Method Detail
-
score
public double score(double tf, double documentFrequency, double F_t, double keyFrequency, double documentLength)
Description copied from class:P
This method provides the contract for implementing weighting models.- Overrides:
score
in classP
- Parameters:
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.- Returns:
- the score returned by the implemented weighting model.
-
-