|
Public Member Functions |
| XLingRetMethod (const lemur::api::Index &dbIndex, const lemur::api::Index &background, lemur::dictionary::PDict &dict, lemur::api::ScoreAccumulator &accumulator, double l, double b, bool cacheDR, string &sBM, string &tBM, const lemur::api::Stopper *stp=NULL, lemur::api::Stemmer *stm=NULL) |
| Constructor.
|
virtual | ~XLingRetMethod () |
| clean up.
|
virtual lemur::api::DocumentRep * | computeDocRep (lemur::api::DOCID_T docID) |
| Create a document representation.
|
virtual double | matchedTermWeight (lemur::api::TERMID_T id, double weight, const lemur::api::DocInfo *info, const lemur::api::DocumentRep *dRep) const |
| Score a given term for a given document.
|
virtual double | adjustedScore (double origScore, double pge) const |
| Adjust the score for a given document.
|
virtual void | scoreCollection (const lemur::api::QueryRep &qry, lemur::api::IndexedRealVector &results) |
virtual void | scoreInvertedIndex (const lemur::api::QueryRep &qryRep, lemur::api::IndexedRealVector &scores, bool scoreAll=false) |
virtual lemur::api::QueryRep * | computeQueryRep (const lemur::api::Query &qry) |
virtual lemur::api::QueryRep * | computeTargetKLRep (const lemur::api::QueryRep *qry) |
virtual double | scoreDoc (const lemur::api::QueryRep &qry, lemur::api::DOCID_T docID) |
| Score a document identified by the id w.r.t. a query rep.
|
virtual void | updateQuery (lemur::api::QueryRep &qryRep, const lemur::api::DocIDSet &relDocs) |
| update the query -- noop
|
Protected Member Functions |
virtual double | scoreDocVector (const XLingQueryModel &qRep, lemur::api::DOCID_T docID, lemur::utility::FreqVector &docVector) |
Protected Attributes |
double | lambda |
double | beta |
double | numSource |
double | numTarget |
bool | docBasedSourceSmooth |
bool | docBasedTargetSmooth |
lemur::api::ScoreAccumulator & | scAcc |
lemur::dictionary::PDict & | dictionary |
lemur::api::Stemmer * | stemmer |
const lemur::api::Stopper * | stopper |
const lemur::api::Index & | source |
lemur::api::DocumentRep ** | docReps |
| cache document reps.
|
bool | cacheDocReps |
| whether or not to cache document representations
|
int | docRepsSize |
| number of documents plus 1, the size of the docReps array.
|
lemur::api::ScoreAccumulator * | termScores |
Translation dictionary based retrieval, scoring queries in the source language against documents in the target language using:
P(Q_s|D_t) = Prod_w_in_Q_s(lambda(Sum_t_in_D_t P(t|D_t)P(w|t) + (1-lambda)P(w|G_s)
where G_s is the background model for the source language.