|
Public Methods |
| | XLingRetMethod (const Index &dbIndex, const Index &background, PDict &dict, ScoreAccumulator &accumulator, double l, double b, bool cacheDR, string &sBM, string &tBM, const Stopper *stp=NULL, Stemmer *stm=NULL) |
| | Constructor.
|
| virtual | ~XLingRetMethod () |
| | clean up.
|
| virtual DocumentRep * | computeDocRep (int docID) |
| | Create a document representation.
|
| virtual double | matchedTermWeight (int id, double weight, const DocInfo *info, const 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 QueryRep &qry, IndexedRealVector &results) |
| | Score all documents in the collection.
|
| virtual void | scoreInvertedIndex (const QueryRep &qryRep, IndexedRealVector &scores, bool scoreAll=false) |
| virtual QueryRep * | computeQueryRep (const Query &qry) |
| | compute the representation for a query, semantics defined by subclass
|
| virtual QueryRep * | computeTargetKLRep (const QueryRep *qry) |
| virtual double | scoreDoc (const QueryRep &qry, int docID) |
| | Score a document identified by the id w.r.t. a query rep.
|
| virtual void | updateQuery (QueryRep &qryRep, const DocIDSet &relDocs) |
| | update the query -- noop
|
Protected Methods |
| virtual double | scoreDocVector (const XLingQueryModel &qRep, int docID, FreqVector &docVector) |
Protected Attributes |
| double | lambda |
| double | beta |
| double | numSource |
| double | numTarget |
| bool | docBasedSourceSmooth |
| bool | docBasedTargetSmooth |
| ScoreAccumulator & | scAcc |
| PDict & | dictionary |
| Stemmer * | stemmer |
| const Stopper * | stopper |
| const Index & | source |
| 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.
|
| ScoreAccumulator * | termScores |