Interface for the data built by a POS tagger.
More...
#include <posTaggerDataInterface.hpp>
Interface for the data built by a POS tagger.
virtual strus::PosTaggerDataInterface::~PosTaggerDataInterface |
( |
| ) |
|
|
inlinevirtual |
virtual void strus::PosTaggerDataInterface::declareIgnoredToken |
( |
const std::string & |
value | ) |
|
|
pure virtual |
Declare a token to be ignored in the document elements, if it does not match.
- Parameters
-
[in] | value | value of the token |
virtual void strus::PosTaggerDataInterface::insert |
( |
int |
docno, |
|
|
const std::vector< Element > & |
sequence |
|
) |
| |
|
pure virtual |
Add a tagged text chunk.
- Parameters
-
[in] | sequence | tagged text chunk |
virtual void strus::PosTaggerDataInterface::markupSegment |
( |
TokenMarkupContextInterface * |
markupContext, |
|
|
int |
docno, |
|
|
int & |
docitr, |
|
|
const SegmenterPosition & |
segmentpos, |
|
|
const char * |
segmentptr, |
|
|
std::size_t |
segmentsize |
|
) |
| const |
|
pure virtual |
Get a text chunk tagged.
- Parameters
-
[in] | markupContext | document context to do the markup of the POS tags |
[in] | docno | document number of the segment to tag |
[in,out] | docitr | iterator in the document (initial value 0) |
[in] | segmentpos | position of the segment in the original source |
[in] | segmentptr | pointer to content of segment to tag |
[in] | segmentsize | size of content of segment to tag in bytes |
The documentation for this class was generated from the following file: