|
Terrier IR Platform 2.2.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.queryexpansion.QueryExpansionModel
uk.ac.gla.terrier.matching.models.queryexpansion.Bo1
public class Bo1
This class implements the Bo1 model for query expansion. See G. Amati's Phd Thesis.
| Field Summary |
|---|
| Fields inherited from class uk.ac.gla.terrier.matching.models.queryexpansion.QueryExpansionModel |
|---|
PARAMETER_FREE, ROCCHIO_BETA |
| Constructor Summary | |
|---|---|
Bo1()
A default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getInfo()
Returns the name of the model. |
double |
parameterFreeNormaliser()
This method computes the normaliser of parameter-free query expansion. |
double |
parameterFreeNormaliser(double maxTermFrequency,
double collectionLength,
double totalDocumentLength)
This method computes the normaliser of parameter-free query expansion. |
double |
score(double withinDocumentFrequency,
double termFrequency)
This method implements the query expansion model. |
double |
score(double withinDocumentFrequency,
double termFrequency,
double totalDocumentLength,
double collectionLength,
double averageDocumentLength)
This method implements the query expansion model. |
| Methods inherited from class uk.ac.gla.terrier.matching.models.queryexpansion.QueryExpansionModel |
|---|
initialise, setAverageDocumentLength, setCollectionLength, setDocumentFrequency, setMaxTermFrequency, setNumberOfDocuments, setTotalDocumentLength |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bo1()
| Method Detail |
|---|
public final java.lang.String getInfo()
getInfo in class QueryExpansionModelpublic final double parameterFreeNormaliser()
parameterFreeNormaliser in class QueryExpansionModel
public final double parameterFreeNormaliser(double maxTermFrequency,
double collectionLength,
double totalDocumentLength)
parameterFreeNormaliser in class QueryExpansionModelmaxTermFrequency - The maximum of the term frequency of the query terms.collectionLength - The number of tokens in the collections.totalDocumentLength - The sum of the length of the top-ranked documents.
public final double score(double withinDocumentFrequency,
double termFrequency)
score in class QueryExpansionModelwithinDocumentFrequency - double The term frequency
in the X top-retrieved documents.termFrequency - double The term frequency in the collection.
public final double score(double withinDocumentFrequency,
double termFrequency,
double totalDocumentLength,
double collectionLength,
double averageDocumentLength)
score in class QueryExpansionModelwithinDocumentFrequency - double The term frequency
in the X top-retrieved documents.termFrequency - double The term frequency in the collection.totalDocumentLength - double The sum of length of
the X top-retrieved documents.collectionLength - double The number of tokens in the whole collection.averageDocumentLength - double The average document
length in the collection.
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||