Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

StructQryDocRep Class Reference

#include <StructQryDocRep.hpp>

Inheritance diagram for StructQryDocRep:

DocumentRep List of all members.

Public Methods

 StructQryDocRep (DOCID_T docID, double *idfValue, int docLength, int docCount, double docLengthAverage, double db)
 New StructQryDocRep.

virtual ~StructQryDocRep ()
 no clean up

virtual double termWeight (TERMID_T termID, const DocInfo *info) const
 needed for DocRep interface.

virtual double termWeight (TERMID_T termID, double dtf, int df) const
 Belief score for this term with this dtf.

virtual double scoreConstant () const
 needed for DocRep interface.

void startPassageIteration (int sz) const
 pass in passage size.

bool hasMorePassage () const
 any passages left?

void nextPassage () const
 next block of psgSize termids, empty positions == OOV (0);

double computeIdfScore (double df) const
double beliefScore (double df, double idf) const
 compute the belief score for a given tf/idf.


Public Attributes

DOCID_T did
 the document id.

int start
 start position of a passage

int end
 end position of a passage


Detailed Description

Representation of a document for structured query retrieval method. Provides support for passage level operations on a document.


Constructor & Destructor Documentation

StructQryDocRep::StructQryDocRep DOCID_T    docID,
double *    idfValue,
int    docLength,
int    docCount,
double    docLengthAverage,
double    db
[inline]
 

New StructQryDocRep.

virtual StructQryDocRep::~StructQryDocRep   [inline, virtual]
 

no clean up


Member Function Documentation

double StructQryDocRep::beliefScore double    df,
double    idf
const [inline]
 

compute the belief score for a given tf/idf.

double StructQryDocRep::computeIdfScore double    df const [inline]
 

compute idf for the given document frequency as log((|C|+0.5)/df)/(log(|C|+1)

bool StructQryDocRep::hasMorePassage   const [inline]
 

any passages left?

void StructQryDocRep::nextPassage   const [inline]
 

next block of psgSize termids, empty positions == OOV (0);

virtual double StructQryDocRep::scoreConstant   const [inline, virtual]
 

needed for DocRep interface.

Implements DocumentRep.

void StructQryDocRep::startPassageIteration int    sz const [inline]
 

pass in passage size.

virtual double StructQryDocRep::termWeight TERMID_T    termID,
double    dtf,
int    df
const [inline, virtual]
 

Belief score for this term with this dtf.

virtual double StructQryDocRep::termWeight TERMID_T    termID,
const DocInfo   info
const [inline, virtual]
 

needed for DocRep interface.

Implements DocumentRep.


Member Data Documentation

DOCID_T StructQryDocRep::did
 

the document id.

int StructQryDocRep::end
 

end position of a passage

int StructQryDocRep::start
 

start position of a passage


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:56 2004 for Lemur Toolkit by doxygen1.2.18