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

DocumentRep Class Reference

Representation of documents in a collection for efficient inverted index scoring. More...

#include <DocumentRep.hpp>

Inheritance diagram for DocumentRep:

CORIDocRep CosSimDocRep OkapiDocRep PassageRep SimpleKLDocModel StructQryDocRep TFIDFDocRep XLingDocModel List of all members.

Public Methods

 DocumentRep (DOCID_T docID, int dl=1)
virtual ~DocumentRep ()
virtual double termWeight (TERMID_T termID, const DocInfo *info) const=0
 term weighting function
See also:
TextQueryRetMethod


virtual double scoreConstant () const=0
 doc-specific constant term in the scoring formula
See also:
TextQueryRetMethod


void setDocLength (int len)
int getDocLength () const
DOCID_T getID () const

Protected Attributes

DOCID_T id
int docLength

Detailed Description

Representation of documents in a collection for efficient inverted index scoring.


Constructor & Destructor Documentation

DocumentRep::DocumentRep DOCID_T    docID,
int    dl = 1
[inline]
 

virtual DocumentRep::~DocumentRep   [inline, virtual]
 


Member Function Documentation

int DocumentRep::getDocLength   const [inline]
 

get the length of the document. Used by PassageRep.

Returns:
the new length.

DOCID_T DocumentRep::getID   const [inline]
 

get the document id. Used by PassageRep.

Returns:
the id.

virtual double DocumentRep::scoreConstant   [pure virtual]
 

doc-specific constant term in the scoring formula

See also:
TextQueryRetMethod

Implemented in CORIDocRep, CosSimDocRep, OkapiDocRep, PassageRep, SimpleKLDocModel, StructQryDocRep, TFIDFDocRep, and XLingDocModel.

void DocumentRep::setDocLength int    len [inline]
 

set the length of the document. Used by PassageRep.

Parameters:
len  the new length.

virtual double DocumentRep::termWeight TERMID_T    termID,
const DocInfo   info
const [pure virtual]
 

term weighting function

See also:
TextQueryRetMethod

Implemented in CORIDocRep, CosSimDocRep, OkapiDocRep, PassageRep, SimpleKLDocModel, StructQryDocRep, TFIDFDocRep, and XLingDocModel.


Member Data Documentation

int DocumentRep::docLength [protected]
 

DOCID_T DocumentRep::id [protected]
 


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