68m_features(bnep.m_features)
124 const uint64_t position,
125 const uint64_t length) :
138 const uint64_t position,
139 const uint64_t length):
220 std::ostringstream oss;
223 oss << (*i).first <<
"="
237 std::ostringstream oss;
244 std::ostringstream oss;
void copy(const BoWComplexToken &a)
This is a complex token for an index.
virtual void clear() override
BoWComplexToken & operator=(const BoWComplexToken &)
std::string getUTF8StringParts(const Common::PropertyCode::PropertyManager *macroManager=0) const
void readNEProperties(std::istream &file)
std::map< std::string, LimaString > m_features
Common::MediaticData::EntityType m_type
void writeNEProperties(std::ostream &file) const
This is a complex token used to represent a named entity token.
const std::map< std::string, LimaString > & getFeatures() const
virtual BoWNamedEntity * clone() const override
void setNamedEntityType(const Common::MediaticData::EntityType &)
std::string getFeaturesUTF8String(void) const
get a string of the features, of the kind : attribute1=value1;attribute2=value2
virtual std::string getOutputUTF8String(const Common::PropertyCode::PropertyManager *macroManager=0) const override
get a string of the BoWToken for output function
virtual ~BoWNamedEntity()
virtual std::string getIdUTF8String(void) const override
function used to identify a bowtoken in a text (used in BowDumper)
BoWNamedEntity & operator=(const BoWNamedEntity &)
Common::MediaticData::EntityType getNamedEntityType(void) const
friend class BoWNamedEntityPrivate
bool operator==(const BoWNamedEntity &)
void setFeature(const std::string &attribute, const LimaString &value)
LinguisticCode m_category
virtual std::string getOutputUTF8String(const Common::PropertyCode::PropertyManager *macroManager=0) const override
get a string of the BoWToken for output function
Provide tools to manage a specific property.
static const MediaticData & single()
const singleton accessor
std::string limastring2utf8stdstring(const Lima::LimaString &phrase, uint32_t size0)
Convert a wide string to a string , in dest up to size bytes.