Interface for the summarization execution context.
More...
#include <summarizerFunctionContextInterface.hpp>
Interface for the summarization execution context.
virtual strus::SummarizerFunctionContextInterface::~SummarizerFunctionContextInterface |
( |
| ) |
|
|
inlinevirtual |
Add a sumarization feature that is subject of summarization to the execution context.
- Parameters
-
[in] | name_ | name of the summarization feature |
[in] | postingIterator_ | iterator on the matches of the summarization feature (ownership remains at caller) |
[in] | variables_ | list of variables attached to subexpressions of the matches (passed with postingIterator_) |
[in] | weight_ | weight of this summarization feature |
[in] | stats_ | global term statistics passed down with the query. If undefined, they can be defined by or estimated from the posting iterator data. |
virtual std::string strus::SummarizerFunctionContextInterface::debugCall |
( |
const Index & |
docno | ) |
|
|
pure virtual |
Get debug info dumped as string of the summarization call for one document.
- Parameters
-
[in] | docno | document to get the summary debug info from |
- Returns
- the debug info as string
virtual std::vector<SummaryElement> strus::SummarizerFunctionContextInterface::getSummary |
( |
const Index & |
docno | ) |
|
|
pure virtual |
Get the summarization elements for one document.
- Parameters
-
[in] | docno | document to get the summary element from |
- Returns
- the summarization elements
virtual void strus::SummarizerFunctionContextInterface::setVariableValue |
( |
const std::string & |
name, |
|
|
double |
value |
|
) |
| |
|
pure virtual |
Set the value of a query variable.
- Parameters
-
[in] | name | name of the variable |
[in] | value | value of the variable |
The documentation for this class was generated from the following file: