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 (int docID, double *idfValue, int docLength, int docCount, double docLengthAverage, double db)
 New StructQryDocRep.

virtual ~StructQryDocRep ()
 no clean up

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

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

virtual double scoreConstant ()
 needed for DocRep interface.

void startPassageIteration (int sz)
 pass in passage size.

bool hasMorePassage ()
 any passages left?

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

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


Public Attributes

int 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 int    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
[inline]
 

compute the belief score for a given tf/idf.

double StructQryDocRep::computeIdfScore double    df [inline]
 

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

bool StructQryDocRep::hasMorePassage   [inline]
 

any passages left?

void StructQryDocRep::nextPassage   [inline]
 

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

virtual double StructQryDocRep::scoreConstant   [inline, virtual]
 

needed for DocRep interface.

Implements DocumentRep.

void StructQryDocRep::startPassageIteration int    sz [inline]
 

pass in passage size.

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

Belief score for this term with this dtf.

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

needed for DocRep interface.

Implements DocumentRep.


Member Data Documentation

int 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 Tue Nov 25 11:27:20 2003 for Lemur Toolkit by doxygen1.2.18