|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Model
This interface encapsulates all the common functionality between standard IR models (including DFR models, TF/IDF, BM25 etc), and Language Modelling models (Terrier includes PonteCroft Language Modelling model).
WeightingModel
Method Summary | |
---|---|
java.lang.String |
getInfo()
Returns a model dependant string, such that runs can be identified from TREC results. |
double |
getParameter()
Returns the current value of the parameter set using setParameter() method. |
void |
setAverageDocumentLength(double n)
Set the average document length in the collection. |
void |
setNumberOfDocuments(double n)
Set the number of documents in the collection. |
void |
setNumberOfPointers(double n)
Set the number of pointers in the collection. |
void |
setNumberOfTokens(double n)
Set the number of tokens in the whole collection. |
void |
setNumberOfUniqueTerms(double n)
Set the number of unique terms in the collection. |
void |
setParameter(double param)
Many models require 1 parameter to be set - this is often dependant on the corpus and the model, so should be set for each Terrier instance. |
Method Detail |
---|
java.lang.String getInfo()
void setParameter(double param)
param
- double the parameter value.void setNumberOfUniqueTerms(double n)
n
- double The number of unique terms in the collection.void setNumberOfTokens(double n)
n
- The number of tokens in the whole collection.void setAverageDocumentLength(double n)
n
- The average document length in the collection.void setNumberOfDocuments(double n)
n
- The number of documents in the collection.void setNumberOfPointers(double n)
n
- The number of pointers in the collection.double getParameter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |