|
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.WeightingModel
uk.ac.gla.terrier.matching.models.LemurTF_IDF
public class LemurTF_IDF
This class implements the TF_IDF weighting model as it is implemented in Lemur. See Notes on the Lemur TFIDF model. Chenxiang Zhai, 2001.
| Constructor Summary | |
|---|---|
LemurTF_IDF()
A default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getInfo()
Returns the name of the model. |
double |
score(double tf,
double docLength)
Uses LemurTF_IDF to compute a weight for a term in a document. |
double |
score(double tf,
double docLength,
double documentFrequency,
double termFrequency,
double keyFrequency)
Uses LemurTF_IDF to compute a weight for a term in a document. |
| Methods inherited from class uk.ac.gla.terrier.matching.models.WeightingModel |
|---|
getParameter, setAverageDocumentLength, setDocumentFrequency, setKeyFrequency, setNumberOfDocuments, setNumberOfPointers, setNumberOfTokens, setNumberOfUniqueTerms, setParameter, setTermFrequency, stirlingPower |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LemurTF_IDF()
| Method Detail |
|---|
public final java.lang.String getInfo()
getInfo in interface ModelgetInfo in class WeightingModel
public final double score(double tf,
double docLength)
score in class WeightingModeltf - The term frequency in the documentdocLength - the document's length
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 query
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||