#include <QueryNode.hpp>
Inheritance diagram for lemur::retrieval::QueryNode:

Public Member Functions | |
| QueryNode (int id, double weight) | |
| New QueryNode with given id and weight. | |
| QueryNode () | |
| New QueryNode with default id (0) and weight (1). | |
| QueryNode (double weight, double dWeight=0) | |
| New QueryNode with given weight and default id (0). | |
| virtual | ~QueryNode () |
| clean up internal data. | |
| const QnList * | children () const |
| the children of this node | |
| void | setChildren (QnList *cl) |
| set the children of this node | |
| int | id () const |
| the node's id | |
| double | weight () const |
| the weight of this node. | |
| void | setWeight (double wt) |
| void | setEntries (int cnt) |
| virtual void | copyDocList (int len, int tf, const lemur::api::DocInfoList *dl, int dc) |
| Copy the DocInfoList for a given node. | |
| virtual void | updateDocList (int numDocs)=0 |
| update doc list from children's doc lists. | |
| virtual double | eval (const lemur::api::DocumentRep *dRep) const =0 |
| evaluate the node on the given document, returning a score. | |
| bool | isProxNode () const |
| Does this node have a proxList? | |
| void | startProxIteration () const |
| Iteration through a node's prox lists. | |
| bool | hasMoreProx () const |
| Any entries left in the list? | |
| bool | nextProxItem () const |
| advance to next element in list. return false if empty. | |
| bool | nextProxItem (lemur::api::DOCID_T did) const |
Public Attributes | |
| int | dCnt |
| number of documents this node matched | |
| bool * | dList |
| array of bool matched docs indexed by docid | |
| lemur::api::DOCID_T | nextDoc |
| the next document this node matched. | |
| ProxInfo * | proxList |
| This node's ProxInfo list. | |
Protected Member Functions | |
| void | transformPassageOps () |
| flatten children of a node into weighted prox entries. | |
| void | unionDocList (int numDocs) |
| Union the DocInfoLists of a given node. | |
| void | intersectDocList (int numDocs) |
| Intersect the DocInfoLists of a given node. | |
Protected Attributes | |
| QnList * | ch |
| This node's children list. | |
| int | entries |
| Number of children in ch. | |
| int | it |
| query node id | |
| double | w |
| query node weight | |
| double | dw |
| The default score. | |
A query node is assumed to have a list of children, an id, a weight (default 1) and an eval function which will be defined by its subclasses.
|
||||||||||||
|
New QueryNode with given id and weight.
|
|
|
New QueryNode with default id (0) and weight (1).
|
|
||||||||||||
|
New QueryNode with given weight and default id (0).
|
|
|
clean up internal data.
|
|
|
the children of this node
|
|
||||||||||||||||||||
|
Copy the DocInfoList for a given node.
Reimplemented in lemur::retrieval::TermQnode. |
|
|
evaluate the node on the given document, returning a score.
Implemented in lemur::retrieval::ProxNode, lemur::retrieval::SumQnode, lemur::retrieval::WsumQnode, lemur::retrieval::AndQnode, lemur::retrieval::OrQnode, lemur::retrieval::NotQnode, lemur::retrieval::MaxQnode, lemur::retrieval::BandQnode, lemur::retrieval::BandNotQnode, lemur::retrieval::FiltRejQnode, lemur::retrieval::FiltReqQnode, lemur::retrieval::TermQnode, and lemur::retrieval::PassageQNode. |
|
|
Any entries left in the list?
|
|
|
the node's id
|
|
|
Intersect the DocInfoLists of a given node. this should iterate over the sets of prox lists pairwise intersect (or clever). |
|
|
Does this node have a proxList?
|
|
|
advance to element with id did, or to next element beyond if did is not found. Return true if found, false if not. |
|
|
advance to next element in list. return false if empty.
|
|
|
set the children of this node
|
|
|
|
|
|
|
|
|
Iteration through a node's prox lists.
|
|
|
flatten children of a node into weighted prox entries. flatten children of a node into weighted proximity entries. removes all belief operators. |
|
|
Union the DocInfoLists of a given node. first elt first elt first elt |
|
|
update doc list from children's doc lists.
Implemented in lemur::retrieval::BeliefNode, lemur::retrieval::ProxNode, lemur::retrieval::BandQnode, lemur::retrieval::FiltReqQnode, lemur::retrieval::OdnQNode, lemur::retrieval::UwnQNode, lemur::retrieval::PassageQNode, and lemur::retrieval::SynQNode. |
|
|
the weight of this node.
|
|
|
This node's children list.
|
|
|
number of documents this node matched
|
|
|
array of bool matched docs indexed by docid
|
|
|
The default score.
|
|
|
Number of children in ch.
|
|
|
query node id
|
|
|
the next document this node matched.
|
|
|
This node's ProxInfo list.
|
|
|
query node weight
|
1.3.4