#include <DocumentRep.hpp>
Inheritance diagram for DocumentRep:
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
| |
virtual double | scoreConstant () const=0 |
doc-specific constant term in the scoring formula
| |
void | setDocLength (int len) |
int | getDocLength () const |
DOCID_T | getID () const |
Protected Attributes | |
DOCID_T | id |
int | docLength |
|
|
|
|
|
get the length of the document. Used by PassageRep.
|
|
get the document id. Used by PassageRep.
|
|
doc-specific constant term in the scoring formula
Implemented in CORIDocRep, CosSimDocRep, OkapiDocRep, PassageRep, SimpleKLDocModel, StructQryDocRep, TFIDFDocRep, and XLingDocModel. |
|
set the length of the document. Used by PassageRep.
|
|
term weighting function
Implemented in CORIDocRep, CosSimDocRep, OkapiDocRep, PassageRep, SimpleKLDocModel, StructQryDocRep, TFIDFDocRep, and XLingDocModel. |
|
|
|
|