|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.matching.models.basicmodel.BasicModel
org.terrier.matching.models.basicmodel.P
org.terrier.matching.models.basicmodel.PL
public class PL
This class implements the PL weighting model.
| Field Summary |
|---|
| Fields inherited from class org.terrier.matching.models.basicmodel.P |
|---|
modelName |
| Fields inherited from class org.terrier.matching.models.basicmodel.BasicModel |
|---|
i, numberOfDocuments, numberOfTokens |
| Constructor Summary | |
|---|---|
PL()
|
|
| Method Summary | |
|---|---|
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 |
|---|
setNumberOfDocuments, setNumberOfTokens, stirlingPower |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PL()
| Method Detail |
|---|
public double score(double tf,
double documentFrequency,
double F_t,
double keyFrequency,
double documentLength)
P
score in class Ptf - 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.
public java.lang.String getInfo()
P
getInfo in class P
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||