Main Page   Namespace List   Class Hierarchy   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


Private Attributes

double * idf
 cached term idf values. May be NULL.

int size
 size used by passages

int increment
 passage overlap value. default is size/2.

int docEnd
 length of the document.

double dla
 average document length

double numer
 terms in idf formula

double denom
 terms in idf formula

double defaultBelief
 default belief and 1 - dB.

double oneMinusDB
 default belief and 1 - dB.


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

double StructQryDocRep::defaultBelief [private]
 

default belief and 1 - dB.

double StructQryDocRep::denom [private]
 

terms in idf formula

int StructQryDocRep::did
 

the document id.

double StructQryDocRep::dla [private]
 

average document length

int StructQryDocRep::docEnd [private]
 

length of the document.

int StructQryDocRep::end
 

end position of a passage

double* StructQryDocRep::idf [private]
 

cached term idf values. May be NULL.

int StructQryDocRep::increment [private]
 

passage overlap value. default is size/2.

double StructQryDocRep::numer [private]
 

terms in idf formula

double StructQryDocRep::oneMinusDB [private]
 

default belief and 1 - dB.

int StructQryDocRep::size [private]
 

size used by passages

int StructQryDocRep::start
 

start position of a passage


The documentation for this class was generated from the following file:
Generated on Fri Feb 6 07:12:07 2004 for LEMUR by doxygen1.2.16