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>
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.
virtual strus::PosTaggerInstanceInterface::~PosTaggerInstanceInterface |
( |
| ) |
|
|
inlinevirtual |
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] | expression | expression 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] | expression | expression selecting the marker position |
[in] | punct | punctuation marker value |
[in] | priority | that 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] | content | input to map |
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: