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

Interface to define a POS tagger instance for creating the input for POS tagging to build the data and to create to context for tagging with the data build from the POS tagging output. More...

#include <posTaggerInstanceInterface.hpp>

Public Member Functions

virtual ~PosTaggerInstanceInterface ()
 Destructor. More...
 
virtual void addContentExpression (const std::string &expression)=0
 Defines an expression for selecting chunks from a document to do tagging. More...
 
virtual void addPosTaggerInputPunctuation (const std::string &expression, const std::string &punct, int priority)=0
 Defines a punktuation marker for POS tagger input. More...
 
virtual std::string getPosTaggerInput (const analyzer::DocumentClass &dclass, const std::string &content) const =0
 Map a document to a text string as input of POS tagging. More...
 
virtual std::string markupDocument (const PosTaggerDataInterface *data, int docno, const analyzer::DocumentClass &dclass, const std::string &content) const =0
 Markup a document with POS tagging info. More...
 

Detailed Description

Interface to define a POS tagger instance for creating the input for POS tagging to build the data and to create to context for tagging with the data build from the POS tagging output.

Constructor & Destructor Documentation

virtual strus::PosTaggerInstanceInterface::~PosTaggerInstanceInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void strus::PosTaggerInstanceInterface::addContentExpression ( const std::string &  expression)
pure virtual

Defines an expression for selecting chunks from a document to do tagging.

Parameters
[in]expressionexpression for selecting chunks
virtual void strus::PosTaggerInstanceInterface::addPosTaggerInputPunctuation ( const std::string &  expression,
const std::string &  punct,
int  priority 
)
pure virtual

Defines a punktuation marker for POS tagger input.

Parameters
[in]expressionexpression selecting the marker position
[in]punctpunctuation marker value
[in]prioritythat selects one of many subsequent punctuations, the one with highest priority is written in POS tagger input
virtual std::string strus::PosTaggerInstanceInterface::getPosTaggerInput ( const analyzer::DocumentClass dclass,
const std::string &  content 
) const
pure virtual

Map a document to a text string as input of POS tagging.

Parameters
ín]dclass document class of document to markup
[in]contentinput to map
virtual std::string strus::PosTaggerInstanceInterface::markupDocument ( const PosTaggerDataInterface data,
int  docno,
const analyzer::DocumentClass dclass,
const std::string &  content 
) const
pure virtual

Markup a document with POS tagging info.

Parameters
ín]data data collected by POS tagger
ín]docno number of document to tag, links to tagging info in data
ín]dclass document class of document to markup
ín]content to markup

The documentation for this class was generated from the following file: