Defines a program for splitting a source text it into chunks with an id correspoding to a selecting expression.
More...
#include <segmenterInstanceInterface.hpp>
Defines a program for splitting a source text it into chunks with an id correspoding to a selecting expression.
virtual strus::SegmenterInstanceInterface::~SegmenterInstanceInterface |
( |
| ) |
|
|
inlinevirtual |
Creates a context for segmenting one document of a specified class.
- Parameters
-
[in] | dclass | description of the document type and encoding to process |
- Returns
- the segmenter context object (with ownership, to be desposed with delete by the caller)
Creates an instance of the segmenters document markup context.
- Parameters
-
[in] | dclass | description of the document type and encoding to process |
[in] | content | document content to process (no chunkwise processing) |
- Returns
- the segmenter markup object (with ownership, to be desposed with delete by the caller)
virtual void strus::SegmenterInstanceInterface::defineSelectorExpression |
( |
int |
id, |
|
|
const std::string & |
expression |
|
) |
| |
|
pure virtual |
Defines an expression for selecting chunks from a document.
- Parameters
-
[in] | id | identifier of the chunks that match to expression |
[in] | expression | expression for selecting chunks |
virtual void strus::SegmenterInstanceInterface::defineSubSection |
( |
int |
startId, |
|
|
int |
endId, |
|
|
const std::string & |
expression |
|
) |
| |
|
pure virtual |
Defines an expression for identifying a sub section of the document.
- Parameters
-
[in] | startId | identifier to be returned when a sub section of this type starts |
[in] | endId | identifier to be returned when a sub section of this type ends |
[in] | expression | expression for selecting the sub section |
Get the definition of the function as structure for introspection.
- Returns
- structure for introspection
The documentation for this class was generated from the following file: