![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
This class is the abstract base class of all elements that can be stored in a BoWText. More...
#include <linguisticProcessing/common/BagOfWords/AbstractBoWElement.h>
Public Member Functions | |
| AbstractBoWElement () | |
| virtual | ~AbstractBoWElement () |
| virtual void | clear () |
| virtual AbstractBoWElement * | clone () const =0 |
| virtual uint64_t | size (void) const =0 |
| size of the AbstractBoWElement is the number of parts in the token: 0 for a predicate, 1 for a simple token, n for complex tokens | |
| virtual BoWType | getType () const |
| virtual Lima::LimaString | getString (void) const =0 |
| virtual uint64_t | getPosition (void) const =0 |
| virtual uint64_t | getLength (void) const =0 |
| virtual void | setPosition (const uint64_t pos)=0 |
| virtual void | setLength (const uint64_t len)=0 |
| virtual std::set< uint64_t > | getVertices () const =0 |
| returns the set of vertices covered by this element | |
| virtual std::string | getOutputUTF8String (const Common::PropertyCode::PropertyManager *macroManager=0) const =0 |
| get a string of the AbstractBoWElement for output function | |
| virtual std::string | getIdUTF8String () const =0 |
| function used to identify a bowtoken in a text (used in BowDumper) | |
This class is the abstract base class of all elements that can be stored in a BoWText.
This includes tokens like simple ones and complex ones as specific entities but also non-token elements like predicates and their arguments
Definition at line 71 of file AbstractBoWElement.h.
|
inline |
Definition at line 75 of file AbstractBoWElement.h.
|
inlinevirtual |
Definition at line 77 of file AbstractBoWElement.h.
|
inlinevirtual |
Reimplemented in Lima::Common::BagOfWords::BoWComplexToken, and Lima::Common::BagOfWords::BoWToken.
Definition at line 79 of file AbstractBoWElement.h.
|
pure virtual |
|
pure virtual |
function used to identify a bowtoken in a text (used in BowDumper)
Implemented in Lima::Common::BagOfWords::BoWToken, Lima::Common::BagOfWords::BoWNamedEntity, Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWTerm.
|
pure virtual |
Implemented in Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
get a string of the AbstractBoWElement for output function
| macroAccessor | if not null, will output the human readable form of the macrocategory. otherwise output the integer code |
Implemented in Lima::Common::BagOfWords::BoWNamedEntity, Lima::Common::BagOfWords::BoWPredicate, Lima::Common::BagOfWords::BoWTerm, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
Implemented in Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
Implemented in Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
inlinevirtual |
Reimplemented in Lima::Common::BagOfWords::BoWNamedEntity, Lima::Common::BagOfWords::BoWPredicate, Lima::Common::BagOfWords::BoWTerm, Lima::Common::BagOfWords::BoWToken, and Lima::Common::BagOfWords::BoWComplexToken.
Definition at line 87 of file AbstractBoWElement.h.
|
pure virtual |
returns the set of vertices covered by this element
Implemented in Lima::Common::BagOfWords::BoWComplexToken, Lima::Common::BagOfWords::BoWNamedEntity, Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
Implemented in Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
Implemented in Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.
|
pure virtual |
size of the AbstractBoWElement is the number of parts in the token: 0 for a predicate, 1 for a simple token, n for complex tokens
Implemented in Lima::Common::BagOfWords::BoWComplexToken, Lima::Common::BagOfWords::BoWPredicate, and Lima::Common::BagOfWords::BoWToken.