#include <DocOffsetParser.hpp>
Inheritance diagram for lemur::parse::DocOffsetParser:
Public Member Functions | |
DocOffsetParser (lemur::api::Parser *parser) | |
initialize with the given parser | |
virtual | ~DocOffsetParser () |
virtual char * | handleWord (char *word) |
Add start and byte offsets for this term to the list of offsets. | |
virtual void | parseString (char *buffer) |
Parse a string, collecting the token offsets. | |
vector< Match > | getOffsets () |
Return the termIds vector. | |
Private Attributes | |
vector< Match > | offsets |
The offsets vector. | |
lemur::api::Parser * | p |
|
initialize with the given parser
|
|
|
|
Return the termIds vector.
|
|
Add start and byte offsets for this term to the list of offsets.
Reimplemented from lemur::api::TextHandler. |
|
Parse a string, collecting the token offsets.
|
|
The offsets vector.
|
|
|