10#ifndef LIMA_LINGUISTICPROCESSINGBOWDOCUMENTHANDLER_H
11#define LIMA_LINGUISTICPROCESSINGBOWDOCUMENTHANDLER_H
49 void handle(
const char* buf,
int length)
override;
57 void startNode(
const std::string& elementName,
bool forIndexing )
override;
64 virtual void setOut( std::ostream* out )
override
67 std::cerr <<
"BowDocumentHandler::setOut NOT IMPLEMENTED!!!"<<std::endl;
74 std::vector<Common::BagOfWords::BoWDocument> m_bowdocs;
75 std::ostringstream* m_bowstream;
#define LIMA_ANALYSISHANDLERS_EXPORT
AbstractTextualAnalysisHandler()
void endAnalysis() override
notify the end of an analysis content
std::string getSBoWContent() const
const std::vector< Common::BagOfWords::BoWDocument > & getBoWDocuments() const
void handle(const char *buf, int length) override
gives content.
virtual void setOut(std::ostream *out) override
set the output stream.
void startAnalysis() override
notify the start of an analysis content
void startDocument(const Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document
void endDocument() override
notify the end of the document