#include <DocumentRep.hpp>
Inheritance diagram for DocumentRep:

Public Methods | |
| DocumentRep (int docID, int dl=1) | |
| virtual | ~DocumentRep () |
| virtual double | termWeight (int 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 |
| int | getID () const |
Protected Attributes | |
| int | 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. |
|
|
|
|
|
|
1.2.18