public class Null extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description |
|---|
Null() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Returns the name of the model.
|
double |
score(double tf,
double docLength)
This method provides the contract for implementing weighting models.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequestpublic String getInfo()
WeightingModelgetInfo in interface ModelgetInfo in class WeightingModelpublic double score(double tf,
double docLength)
WeightingModelscore in class WeightingModeltf - The term frequency in the documentdocLength - the document's lengthTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow