public class SingleFieldModel extends WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description |
|---|
SingleFieldModel(String[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
SingleFieldModel |
clone()
Clone this weighting model
|
String |
getInfo()
Returns the name of the model.
|
void |
prepare()
prepare
|
double |
score(double tf,
double docLength)
This method provides the contract for implementing weighting models.
|
double |
score(Posting _p)
Returns score
|
void |
setCollectionStatistics(CollectionStatistics _cs)
Sets collection statistics
|
void |
setEntryStatistics(EntryStatistics _es)
Sets entry statistics.
|
void |
setParameter(double c)
Sets the c value
|
getOverflowed, getParameter, setKeyFrequency, setRequestpublic SingleFieldModel clone()
WeightingModelclone in class WeightingModelpublic void prepare()
WeightingModelprepare in class WeightingModelpublic double score(Posting _p)
WeightingModelscore in class WeightingModelpublic void setCollectionStatistics(CollectionStatistics _cs)
WeightingModelsetCollectionStatistics in class WeightingModelpublic void setEntryStatistics(EntryStatistics _es)
WeightingModelsetEntryStatistics in class WeightingModelpublic 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 lengthpublic void setParameter(double c)
WeightingModelsetParameter in interface ModelsetParameter in class WeightingModelc - the term frequency normalisation parameter value.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow