public class DFRee extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description |
|---|
DFRee()
A default constructor to make this model.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Returns the name of the model, in this case "DFRee"
|
double |
score(double tf,
double docLength)
Uses DFRee to compute a weight for a term in a document.
|
double |
score(double tf,
double docLength,
double documentFrequency,
double termFrequency,
double keyFrequency)
Deprecated.
|
clone, getOverflowed, getParameter, prepare, score, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequestpublic final String getInfo()
getInfo in interface ModelgetInfo in class WeightingModelpublic final double score(double tf,
double docLength)
score in class WeightingModeltf - The term frequency of the term in the documentdocLength - the document's length@Deprecated public final double score(double tf, double docLength, double documentFrequency, double termFrequency, double keyFrequency)
score in class WeightingModeltf - The term frequency in the documentdocLength - the document's lengthdocumentFrequency - The document frequency of the termtermFrequency - the term frequency in the collectionkeyFrequency - the term frequency in the queryTerrier 4.0. Copyright © 2004-2014 University of Glasgow