#include <linguisticProcessing/common/BagOfWords/bowComplexTokenPrivate.h>
|
| | BoWComplexTokenPrivate () |
| | BoWComplexTokenPrivate (const BoWComplexToken &) |
| | copy constructor
|
| | BoWComplexTokenPrivate (const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length) |
| | BoWComplexTokenPrivate (const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length, std::deque< boost::shared_ptr< BoWToken > > &parts, const uint64_t head) |
| | a constructor to build a simple, independent complex token (parts are simple tokens, not listed elsewhere in a BoWText)
|
| virtual | ~BoWComplexTokenPrivate () |
| | BoWComplexTokenPrivate (const BoWComplexTokenPrivate &) |
| BoWComplexTokenPrivate & | operator= (const BoWComplexTokenPrivate &) |
| boost::shared_ptr< BoWToken > | addPart (boost::shared_ptr< BoWRelation > rel, boost::shared_ptr< BoWToken > tok, const bool isHead=false) |
| void | copy (const BoWComplexToken &a) |
| | BoWTokenPrivate (const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length) |
| | BoWTokenPrivate (const Lima::LimaString &str, const uint64_t position=0, const uint64_t length=0) |
| | BoWTokenPrivate (const BoWToken &tok) |
| | BoWTokenPrivate () |
| | BoWTokenPrivate (const BoWTokenPrivate &tok) |
| BoWTokenPrivate & | operator= (const BoWTokenPrivate &tok) |
| bool | operator== (const BoWTokenPrivate &tok) const |
| virtual | ~BoWTokenPrivate () |
| void | convertSpaces (void) |
| | convert the spaces in the lemma string into a non-space character (defined by the m_compoundSeparator member)
|
Definition at line 33 of file bowComplexTokenPrivate.h.
◆ BoWComplexTokenPrivate() [1/5]
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::BoWComplexTokenPrivate |
( |
| ) |
|
◆ BoWComplexTokenPrivate() [2/5]
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::BoWComplexTokenPrivate |
( |
const BoWComplexToken & | t | ) |
|
copy constructor
- Attention
- the copy of the parts of a complex token is tricky : if a part of a complex token points to a token that have a proper existence outside of the part list, the pointer will be copied (no creation of a new object), otherwise a new object is created.
Definition at line 79 of file bowComplexToken.cpp.
◆ BoWComplexTokenPrivate() [3/5]
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::BoWComplexTokenPrivate |
( |
const Lima::LimaString & | lemma, |
|
|
const LinguisticCode | category, |
|
|
const uint64_t | position, |
|
|
const uint64_t | length ) |
◆ BoWComplexTokenPrivate() [4/5]
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::BoWComplexTokenPrivate |
( |
const Lima::LimaString & | lemma, |
|
|
const LinguisticCode | category, |
|
|
const uint64_t | position, |
|
|
const uint64_t | length, |
|
|
std::deque< boost::shared_ptr< BoWToken > > & | parts, |
|
|
const uint64_t | head ) |
a constructor to build a simple, independent complex token (parts are simple tokens, not listed elsewhere in a BoWText)
- Parameters
-
| lemma | the lemma of the complex token |
| category | the category of the complex token |
| position | the position of the complex token |
| length | the length of the complex token |
| parts | a deque containing the simple tokens forming the parts of the complex token |
| int | head the index of the head token in the preceding list |
- Returns
◆ ~BoWComplexTokenPrivate()
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::~BoWComplexTokenPrivate |
( |
| ) |
|
|
virtual |
◆ BoWComplexTokenPrivate() [5/5]
| Lima::Common::BagOfWords::BoWComplexTokenPrivate::BoWComplexTokenPrivate |
( |
const BoWComplexTokenPrivate & | bctp | ) |
|
◆ addPart()
| boost::shared_ptr< BoWToken > Lima::Common::BagOfWords::BoWComplexTokenPrivate::addPart |
( |
boost::shared_ptr< BoWRelation > | rel, |
|
|
boost::shared_ptr< BoWToken > | tok, |
|
|
const bool | isHead = false ) |
◆ copy()
| void Lima::Common::BagOfWords::BoWComplexTokenPrivate::copy |
( |
const BoWComplexToken & | a | ) |
|
◆ operator=()
◆ BoWComplexToken
| friend class BoWComplexToken |
|
friend |
◆ m_head
| uint64_t Lima::Common::BagOfWords::BoWComplexTokenPrivate::m_head |
◆ m_parts
The documentation for this class was generated from the following files: