Class MRF
- java.lang.Object
-
- org.terrier.matching.models.WeightingModel
-
- org.terrier.matching.models.dependence.MRF
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Model
public class MRF extends WeightingModel
- See Also:
- Serialized Form
-
-
Field Summary
-
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.StringgetInfo()Returns the name of the model.voidprepare()preparedoublescore(double matchingNGrams, double _docLength)This method provides the contract for implementing weighting models.voidsetEntryStatistics(EntryStatistics _es)Sets entry statistics.-
Methods inherited from class org.terrier.matching.models.WeightingModel
clone, getOverflowed, getParameter, score, setCollectionStatistics, setKeyFrequency, setParameter, setRequest
-
-
-
-
Method Detail
-
prepare
public void prepare()
Description copied from class:WeightingModelprepare- Overrides:
preparein classWeightingModel
-
getInfo
public java.lang.String getInfo()
Description copied from class:WeightingModelReturns the name of the model.- Specified by:
getInfoin interfaceModel- Specified by:
getInfoin classWeightingModel- Returns:
- java.lang.String
-
setEntryStatistics
public void setEntryStatistics(EntryStatistics _es)
Description copied from class:WeightingModelSets entry statistics.- Overrides:
setEntryStatisticsin classWeightingModel
-
score
public double score(double matchingNGrams, double _docLength)Description copied from class:WeightingModelThis method provides the contract for implementing weighting models.- Specified by:
scorein classWeightingModel- Parameters:
matchingNGrams- The term frequency in the document_docLength- the document's length- Returns:
- the score assigned to a document with the given tf and docLength, and other preset parameters
-
-