![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
An iterator on the bowText that returns IndexElements. More...
#include <linguisticProcessing/common/BagOfWords/indexElementIterator.h>
Public Member Functions | |
| IndexElementIterator (const BoWText &bowText, AbstractLexiconIdGenerator *idAccessor=0, const uint64_t maxCompoundSize=0, const uint64_t nbMaxPartialCompounds=1000) | |
| constructor | |
| ~IndexElementIterator () | |
| bool | isAtEnd () const |
| const IndexElement & | getElement () const |
| IndexElement | getElement () |
| IndexElementIterator & | operator++ () |
| IndexElementIterator | operator++ (int) |
An iterator on the bowText that returns IndexElements.
Definition at line 26 of file indexElementIterator.h.
| Lima::Common::BagOfWords::IndexElementIterator::IndexElementIterator | ( | const BoWText & | bowText, |
| AbstractLexiconIdGenerator * | idAccessor = 0, |
||
| const uint64_t | maxCompoundSize = 0, |
||
| const uint64_t | nbMaxPartialCompounds = 1000 |
||
| ) |
constructor
| bowText | the BoWText on which the iterator iterates |
| idAccessor | object which convert a string or an compound word in term id |
| maxCompoundSize | maximum size authorized for a compound: if size is exceeded the compound will not be accessed by the iterator (however, its partial compounds will be built and accessed if their size is less than maxCompoundSize). If set to zero, no limit to compound size. |
| nbMaxPartialCompounds | a parameter allowing to limit the number of partial complex tokens (avoid combinatorial explosion for too large compounds) |
Definition at line 142 of file indexElementIterator.cpp.
| Lima::Common::BagOfWords::IndexElementIterator::~IndexElementIterator | ( | ) |
Definition at line 155 of file indexElementIterator.cpp.
| IndexElement Lima::Common::BagOfWords::IndexElementIterator::getElement | ( | ) |
Definition at line 173 of file indexElementIterator.cpp.
| const IndexElement & Lima::Common::BagOfWords::IndexElementIterator::getElement | ( | ) | const |
| bool Lima::Common::BagOfWords::IndexElementIterator::isAtEnd | ( | ) | const |
Definition at line 162 of file indexElementIterator.cpp.
| IndexElementIterator & Lima::Common::BagOfWords::IndexElementIterator::operator++ | ( | ) |
Definition at line 289 of file indexElementIterator.cpp.
| IndexElementIterator Lima::Common::BagOfWords::IndexElementIterator::operator++ | ( | int | ) |
Definition at line 332 of file indexElementIterator.cpp.