strusAnalyzer
0.17
|
Structure describing a token with an id used for pattern matching. More...
#include <patternLexem.hpp>
Public Member Functions | |
PatternLexem () | |
Default constructor. More... | |
PatternLexem (int id_, int ordpos_, const Position &origpos_, int origsize_) | |
Constructor. More... | |
PatternLexem (const PatternLexem &o) | |
Copy constructor. More... | |
~PatternLexem () | |
Destructor. More... | |
int | id () const |
Internal identifier of the term. More... | |
bool | operator< (const PatternLexem &o) const |
Public Member Functions inherited from strus::analyzer::Token | |
Token () | |
Default constructor. More... | |
Token (int ordpos_, const Position &origpos_, int origsize_) | |
Constructor. More... | |
Token (const Token &o) | |
Copy constructor. More... | |
int | ordpos () const |
Get the ordinal (counting) position in the document. This value is used to assign the term position, that is not the byte position but a number taken from the enumeration of all distinct feature byte postions. More... | |
const Position & | origpos () const |
Get the start position of this token in the original document. More... | |
Position & | origpos () |
Get the start position of this token in the original document. More... | |
int | origsize () const |
Get the byte size of the translated token string (UTF-8) in the original document segment. More... | |
void | setOrigPosition (const Position &origpos_) |
Set the original segment index of the token in the source. More... | |
void | setOrigSize (int origsize_) |
Set the original size of the token in the source. More... | |
void | setOrdpos (int ordpos_) |
Set the ordinal position of the token in the source (adjusted in case of multiple segments) More... | |
int | compare (const Token &o) const |
Compare with another token. More... | |
bool | operator< (const Token &o) const |
Compare operator for sort. More... | |
Structure describing a token with an id used for pattern matching.
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Internal identifier of the term.
|
inline |