20namespace LinguisticProcessing
48 istringstream in(m_bowstream->str());
57 Node node(
"BOW_TEXT_NAME2",
86 if (m_writer ==
nullptr){
89 m_bowstream=
new std::ostringstream();
91 m_writer->
setOut(m_bowstream);
98 m_writer->
handle(buf,length);
defines callback interface
void readHeader(std::istream &file)
void readBoWText(std::istream &file, BoWText &bowText)
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...
void addContent(CONTENT_ID ContentId, Content datas)
Ajouter un contenu au handler.
virtual void endAnalysis() override
function called by the LIMA analyzer on the end of a text part that is to be analyzed
virtual void startDocument(const Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document, and give its properties
virtual void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
virtual void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
Common::BagOfWords::BoWText & getBowText()
virtual void endDocument() override
notify the end of the document
virtual void startAnalysis() override
function called by the LIMA analyzer on start of a new document
virtual void handle(const char *buf, int length) override
gives content.
virtual ~BowTextHandler()
void setOut(std::ostream *out) override
set the output stream.
virtual void startAnalysis() override
function called by the LIMA analyzer on start of a new document
virtual void handle(const char *buf, int length) override
gives content.
virtual void endAnalysis() override
function called by the LIMA analyzer on the end of a text part that is to be analyzed
noeud de contenu au sein d'une structure.
void add_Node(const Node &node)
CONTENT_ID get_LastContentId()
void set_LastContentId(CONTENT_ID)
uint64_t CONTENT_ID
Identifier of an feature content.