public abstract class AbstractSmoother extends Object implements Smoother
Abstract Smoother
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
docFirstOptimal |
protected boolean |
querytermFirstOptimal |
protected double |
queryWeight |
protected boolean |
useLog |
| Constructor and Description |
|---|
AbstractSmoother() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract double |
computeSmoothedProb(int termFreq) |
boolean |
getLogLikelihoodOption() |
protected double |
getProb(double originalProb) |
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 |
setLogLikelihoodOption(boolean option)
If this option is true, smoomther will return a log score
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDoc, setParameters, setQueryTermprotected boolean useLog
protected double queryWeight
protected boolean docFirstOptimal
protected boolean querytermFirstOptimal
protected abstract double computeSmoothedProb(int termFreq)
public boolean isDocFirstOptimal()
SmootherisDocFirstOptimal in interface Smootherpublic boolean isQueryTermFirstOptimal()
SmootherisQueryTermFirstOptimal in interface Smootherpublic void setLogLikelihoodOption(boolean option)
SmoothersetLogLikelihoodOption in interface Smootheroption - true or falsepublic boolean getLogLikelihoodOption()
getLogLikelihoodOption in interface Smootherpublic double getSmoothedProb(int termFreq)
SmoothergetSmoothedProb in interface SmoothertermFreq - the frequency of the current term in the current documentpublic double getSmoothedProb(IRDoc doc, int termFreq)
SmoothergetSmoothedProb in interface Smootherdoc - the documenttermFreq - the frequency of the current query term in the given documentpublic double getSmoothedProb(IRDoc doc)
SmoothergetSmoothedProb in interface Smootherdoc - the documentpublic double getSmoothedProb(SimpleTermPredicate queryTerm, int termFreq)
SmoothergetSmoothedProb in interface SmootherqueryTerm - the query termtermFreq - the frequency of the given query term in the current documentpublic double getSmoothedProb(SimpleTermPredicate queryTerm)
SmoothergetSmoothedProb in interface SmootherqueryTerm - the query termpublic double getSmoothedProb(IRDoc doc, SimpleTermPredicate queryTerm)
SmoothergetSmoothedProb in interface Smootherdoc - the documentqueryTerm - the query termpublic double getSmoothedProb(IRDoc doc, SimpleTermPredicate queryTerm, int termFreq)
getSmoothedProb in interface Smootherdoc - the documentqueryTerm - the query termtermFreq - the frequency of the query term in the given documentprotected double getProb(double originalProb)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.