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, InvFPIndex &dbIndex, double *idfValue)
 New StructQryDocRep for an entire document.

 StructQryDocRep (int docID, InvFPIndex &dbIndex, double *idfValue, int bg, int nd)
virtual ~StructQryDocRep ()
virtual double termWeight (int termID, DocInfo *info)
 Belief score for this term in this document.

virtual double scoreConstant ()
 return 0.

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

virtual double computeIdfScore (double df)
virtual double beliefScore (double df, double idf)
 compute the belief score for a given term frequency.

virtual double passageLength ()
 The lenght of the current passage.


Public Attributes

int did
 the document id.

InvFPIndexind
double * idf
int start
 start position of a passage

int end
 end position of a passage

int size
 size used by passages

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

int docEnd
 length of the document.

int offset
 record the offset of passage having the maxScore

double maxScore
 record the max score of the passages

DocTermsCounterdocTermFrq

Detailed Description

Representation of a doc (as a weighted vector) in the StructQry method. Provides support for passage level operations on a document.


Constructor & Destructor Documentation

StructQryDocRep::StructQryDocRep int    docID,
InvFPIndex   dbIndex,
double *    idfValue
[inline]
 

New StructQryDocRep for an entire document.

StructQryDocRep::StructQryDocRep int    docID,
InvFPIndex   dbIndex,
double *    idfValue,
int    bg,
int    nd
[inline]
 

New StructQryDocRep for a passage from a document beginning at bg and ending and nd.

virtual StructQryDocRep::~StructQryDocRep   [inline, virtual]
 


Member Function Documentation

double StructQryDocRep::beliefScore double    df,
double    idf
[virtual]
 

compute the belief score for a given term frequency.

double StructQryDocRep::computeIdfScore double    df [virtual]
 

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

bool StructQryDocRep::hasMorePassage   [virtual]
 

void StructQryDocRep::nextPassage   [virtual]
 

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

virtual double StructQryDocRep::passageLength   [inline, virtual]
 

The lenght of the current passage.

virtual double StructQryDocRep::scoreConstant   [inline, virtual]
 

return 0.

Implements DocumentRep.

void StructQryDocRep::startPassageIteration   [virtual]
 

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

Belief score for this term in this document.

Implements DocumentRep.


Member Data Documentation

int StructQryDocRep::did
 

the document id.

int StructQryDocRep::docEnd
 

length of the document.

DocTermsCounter* StructQryDocRep::docTermFrq
 

int StructQryDocRep::end
 

end position of a passage

double* StructQryDocRep::idf
 

int StructQryDocRep::increment
 

passage overlap value. default is size/2.

InvFPIndex& StructQryDocRep::ind
 

double StructQryDocRep::maxScore
 

record the max score of the passages

int StructQryDocRep::offset
 

record the offset of passage having the maxScore

int StructQryDocRep::size
 

size used by passages

int StructQryDocRep::start
 

start position of a passage


The documentation for this class was generated from the following files:
Generated on Mon Sep 30 14:14:21 2002 for LEMUR by doxygen1.2.18