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

Interface for building the automaton for detecting patterns of tokens in a document stream. More...

#include <tokenMarkupInstanceInterface.hpp>

Public Member Functions

virtual ~TokenMarkupInstanceInterface ()
 Destructor. More...
 
virtual
TokenMarkupContextInterface
createContext (const SegmenterInstanceInterface *segmenter) const =0
 Create the context to markup tokens or spans in a document. More...
 
virtual analyzer::FunctionView view () const =0
 Get the definition of the function as structure for introspection. More...
 

Detailed Description

Interface for building the automaton for detecting patterns of tokens in a document stream.

Constructor & Destructor Documentation

virtual strus::TokenMarkupInstanceInterface::~TokenMarkupInstanceInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual TokenMarkupContextInterface* strus::TokenMarkupInstanceInterface::createContext ( const SegmenterInstanceInterface segmenter) const
pure virtual

Create the context to markup tokens or spans in a document.

Parameters
[in]segmentersegmenter to use for inserting document markup tags
Returns
the token markup context
Remarks
The context cannot be reset. So the context has to be recreated for every processed unit (document)
virtual analyzer::FunctionView strus::TokenMarkupInstanceInterface::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: