public interface Smoother
Interface of smoother which returns a score of a searching term in the given document to the searcher
The toolkit has implemented various language model smoothing methods as well as traditional probabilistic and vector space models. For language models, the score means the probability of the doucment generating the term.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLogLikelihoodOption() |
double |
getSmoothedProb(int termFreq)
Before calling this method, one should call the setQueryTerm method and the setDoc method.
|
double |
getSmoothedProb(IRDoc doc)
It is equal to calling getSmoothedProb(doc, 0);
|
double |
getSmoothedProb(IRDoc doc,
int termFreq)
Before calling this method, one should call the setQueryTerm method.
|
double |
getSmoothedProb(IRDoc doc,
SimpleTermPredicate queryTerm)
This method is equal to call getSmoothedProb(doc, queryTerm, 0).
|
double |
getSmoothedProb(IRDoc doc,
SimpleTermPredicate queryTerm,
int termFreq) |
double |
getSmoothedProb(SimpleTermPredicate queryTerm)
It is equal to calling getSmoothedProb(queryTerm, 0);
|
double |
getSmoothedProb(SimpleTermPredicate queryTerm,
int termFreq)
Before calling this method, one should call the setDoc method.
|
boolean |
isDocFirstOptimal()
If this method returns true, the fullrank searcher will do breadth-frist search, i.e.
|
boolean |
isQueryTermFirstOptimal()
If this method returns true, the fullrank searcher will do depth-frist search, i.e.
|
void |
setDoc(IRDoc doc)
Set the current document for processing
|
void |
setLogLikelihoodOption(boolean option)
If this option is true, smoomther will return a log score
|
boolean |
setParameters(double[] params) |
void |
setQueryTerm(SimpleTermPredicate queryTerm)
Set the current query term for processing
|
double getSmoothedProb(IRDoc doc, SimpleTermPredicate queryTerm, int termFreq)
doc - the documentqueryTerm - the query termtermFreq - the frequency of the query term in the given documentdouble getSmoothedProb(IRDoc doc, SimpleTermPredicate queryTerm)
doc - the documentqueryTerm - the query termdouble getSmoothedProb(IRDoc doc, int termFreq)
doc - the documenttermFreq - the frequency of the current query term in the given documentdouble getSmoothedProb(SimpleTermPredicate queryTerm, int termFreq)
queryTerm - the query termtermFreq - the frequency of the given query term in the current documentdouble getSmoothedProb(int termFreq)
termFreq - the frequency of the current term in the current documentdouble getSmoothedProb(SimpleTermPredicate queryTerm)
queryTerm - the query termdouble getSmoothedProb(IRDoc doc)
doc - the documentboolean setParameters(double[] params)
params - paramteres for the current smoothervoid setQueryTerm(SimpleTermPredicate queryTerm)
queryTerm - the query termvoid setDoc(IRDoc doc)
doc - the documentboolean isDocFirstOptimal()
boolean isQueryTermFirstOptimal()
void setLogLikelihoodOption(boolean option)
option - true or falseboolean getLogLikelihoodOption()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.