public class MRF extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Returns the name of the model.
|
void |
prepare()
prepare
|
double |
score(double matchingNGrams,
double _docLength)
This method provides the contract for implementing weighting models.
|
void |
setEntryStatistics(EntryStatistics _es)
Sets entry statistics.
|
clone, getOverflowed, getParameter, score, setCollectionStatistics, setKeyFrequency, setParameter, setRequest
public void prepare()
WeightingModel
prepare
in class WeightingModel
public String getInfo()
WeightingModel
getInfo
in interface Model
getInfo
in class WeightingModel
public void setEntryStatistics(EntryStatistics _es)
WeightingModel
setEntryStatistics
in class WeightingModel
public double score(double matchingNGrams, double _docLength)
WeightingModel
score
in class WeightingModel
matchingNGrams
- The term frequency in the document_docLength
- the document's lengthTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow