strusAnalyzer  0.17
Public Member Functions | List of all members
strus::SegmenterInstanceInterface Class Referenceabstract

Defines a program for splitting a source text it into chunks with an id correspoding to a selecting expression. More...

#include <segmenterInstanceInterface.hpp>

Public Member Functions

virtual ~SegmenterInstanceInterface ()
 Destructor. More...
 
virtual void defineSelectorExpression (int id, const std::string &expression)=0
 Defines an expression for selecting chunks from a document. More...
 
virtual void defineSubSection (int startId, int endId, const std::string &expression)=0
 Defines an expression for identifying a sub section of the document. More...
 
virtual SegmenterContextInterfacecreateContext (const analyzer::DocumentClass &dclass) const =0
 Creates a context for segmenting one document of a specified class. More...
 
virtual
SegmenterMarkupContextInterface
createMarkupContext (const analyzer::DocumentClass &dclass, const std::string &content) const =0
 Creates an instance of the segmenters document markup context. More...
 
virtual analyzer::FunctionView view () const =0
 Get the definition of the function as structure for introspection. More...
 

Detailed Description

Defines a program for splitting a source text it into chunks with an id correspoding to a selecting expression.

Constructor & Destructor Documentation

virtual strus::SegmenterInstanceInterface::~SegmenterInstanceInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual SegmenterContextInterface* strus::SegmenterInstanceInterface::createContext ( const analyzer::DocumentClass dclass) const
pure virtual

Creates a context for segmenting one document of a specified class.

Parameters
[in]dclassdescription of the document type and encoding to process
Returns
the segmenter context object (with ownership, to be desposed with delete by the caller)
virtual SegmenterMarkupContextInterface* strus::SegmenterInstanceInterface::createMarkupContext ( const analyzer::DocumentClass dclass,
const std::string &  content 
) const
pure virtual

Creates an instance of the segmenters document markup context.

Parameters
[in]dclassdescription of the document type and encoding to process
[in]contentdocument 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]ididentifier of the chunks that match to expression
[in]expressionexpression 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]startIdidentifier to be returned when a sub section of this type starts
[in]endIdidentifier to be returned when a sub section of this type ends
[in]expressionexpression for selecting the sub section
virtual analyzer::FunctionView strus::SegmenterInstanceInterface::view ( ) const
pure virtual

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: