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.String
getInfo()
Returns the name of the model.void
prepare()
preparedouble
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, score, setCollectionStatistics, setKeyFrequency, setParameter, setRequest
-
-
-
-
Method Detail
-
prepare
public void prepare()
Description copied from class:WeightingModel
prepare- Overrides:
prepare
in classWeightingModel
-
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 document_docLength
- the document's length- Returns:
- the score assigned to a document with the given tf and docLength, and other preset parameters
-
-