|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.matching.models.normalisation.Normalisation
uk.ac.gla.terrier.matching.models.normalisation.NormalisationB
public class NormalisationB
This class implements BM25's normalisation method.
| Constructor Summary | |
|---|---|
NormalisationB()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getInfo()
Get the name of the normalisation method. |
double |
normalise(double tf,
double docLength,
double termFrequency)
This method gets the normalised term frequency. |
| Methods inherited from class uk.ac.gla.terrier.matching.models.normalisation.Normalisation |
|---|
disableFieldRetrieval, enableFieldRetrieval, getFieldWeight, getParameter, setAverageDocumentLength, setDocumentFrequency, setFieldWeight, setNumberOfDocuments, setNumberOfTokens, setParameter |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NormalisationB()
| Method Detail |
|---|
public java.lang.String getInfo()
getInfo in class Normalisation
public double normalise(double tf,
double docLength,
double termFrequency)
normalise in class Normalisationtf - The frequency of the query term in the document.docLength - The number of tokens in the document.termFrequency - The frequency of the query term in the collection.
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||