Class pBiL
- java.lang.Object
-
- org.terrier.matching.models.WeightingModel
-
- org.terrier.matching.models.dependence.pBiL
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,Model
- Direct Known Subclasses:
pBiL2
public class pBiL extends WeightingModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static GammaFunction
gf
protected static double
REC_LOG_2
-
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.String
getInfo()
Returns the name of the model.double
score(double matchingNGrams, double docLength)
This method provides the contract for implementing weighting models.void
setEntryStatistics(EntryStatistics _es)
Sets entry statistics.-
Methods inherited from class org.terrier.matching.models.WeightingModel
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setKeyFrequency, setParameter, setRequest
-
-
-
-
Field Detail
-
REC_LOG_2
protected static final double REC_LOG_2
-
gf
protected static final GammaFunction gf
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
Description copied from class:WeightingModel
Returns the name of the model.- Specified by:
getInfo
in interfaceModel
- Specified by:
getInfo
in classWeightingModel
- Returns:
- java.lang.String
-
setEntryStatistics
public void setEntryStatistics(EntryStatistics _es)
Description copied from class:WeightingModel
Sets entry statistics.- Overrides:
setEntryStatistics
in classWeightingModel
-
score
public double score(double matchingNGrams, double docLength)
Description copied from class:WeightingModel
This method provides the contract for implementing weighting models.- Specified by:
score
in classWeightingModel
- Parameters:
matchingNGrams
- The term frequency in the documentdocLength
- the document's length- Returns:
- the score assigned to a document with the given tf and docLength, and other preset parameters
-
-