53 const uint64_t position=0,
54 const uint64_t length=0,
58 const std::vector<uint64_t>& structure,
59 const std::vector<uint64_t>& relations,
73 uint64_t
getId()
const;
93 void setId(
const uint64_t
id);
97 const std::vector<uint64_t>& r);
QDebug & operator<<(QDebug &qd, const std::string &str)
uint64_t getLength() const
void addInStructure(uint64_t id, uint64_t rel)
uint64_t getPosition() const
bool operator==(const IndexElement &other) const
equality operator just compare content, not positions
Lima::Common::BagOfWords::BoWType getType() const
void setId(const uint64_t id)
const std::vector< uint64_t > & getStructure() const
void setCategory(LinguisticCode category)
void setSimpleTerm(const LimaString &t)
bool isNamedEntity() const
LinguisticCode getCategory() const
bool hasSamePosition(const IndexElement &other) const
compare position and length
bool isSimpleTerm() const
const std::vector< uint64_t > & getRelations() const
const LimaString & getSimpleTerm() const
bool hasNearlySamePosition(const IndexElement &other) const
compare position and length: thereis some intersaction in position
bool isComposedTerm() const
Lima::Common::Misc::PositionLengthList & getPositionLengthList()
const Common::MediaticData::EntityType & getNamedEntityType() const
IndexElement & operator=(const IndexElement &)
void setStructure(const std::vector< uint64_t > &s, const std::vector< uint64_t > &r)
static LIMA_COMMON_EXPORT const LinguisticCode ZERO
BoWType
enum to characterize the type of the AbstractBoWElement
std::vector< std::pair< Position, Length > > PositionLengthList