14#ifndef BOWCOMPLEXTOKENPRIVATE_H
15#define BOWCOMPLEXTOKENPRIVATE_H
50 const uint64_t position,
51 const uint64_t length);
69 const uint64_t position,
70 const uint64_t length,
71 std::deque< boost::shared_ptr< BoWToken > >& parts,
79 std::deque<BoWComplexToken::Part>
m_parts;
84 boost::shared_ptr< BoWToken >
addPart(boost::shared_ptr< BoWRelation > rel,
85 boost::shared_ptr< BoWToken > tok,
86 const bool isHead=
false);
BoWComplexTokenPrivate & operator=(const BoWComplexTokenPrivate &)
void copy(const BoWComplexToken &a)
boost::shared_ptr< BoWToken > addPart(boost::shared_ptr< BoWRelation > rel, boost::shared_ptr< BoWToken > tok, const bool isHead=false)
friend class BoWComplexToken
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,...
std::deque< BoWComplexToken::Part > m_parts
the list of the parts of the complex token
BoWComplexTokenPrivate(const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length)
virtual ~BoWComplexTokenPrivate()
uint64_t m_head
the index of the head of the complex token in its part list
BoWTokenPrivate(const Lima::LimaString &lemma, const LinguisticCode category, const uint64_t position, const uint64_t length)