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, setRequestpublic void prepare()
WeightingModelprepare in class WeightingModelpublic String getInfo()
WeightingModelgetInfo in interface ModelgetInfo in class WeightingModelpublic void setEntryStatistics(EntryStatistics _es)
WeightingModelsetEntryStatistics in class WeightingModelpublic double score(double matchingNGrams,
double _docLength)
WeightingModelscore in class WeightingModelmatchingNGrams - The term frequency in the document_docLength - the document's lengthTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow