![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be defined to handle the events generated by the LIMA linguistic analyzer. More...
#include <common/Handler/AbstractAnalysisHandler.h>
Public Member Functions | |
| virtual | ~AbstractAnalysisHandler () |
| virtual void | startAnalysis ()=0 |
| function called by the LIMA analyzer on start of a new document | |
| virtual void | handle (const char *buf, int length)=0 |
| main function of the handler: handle data produced by the dumper at end of the analysis of a given text part. | |
| virtual void | endAnalysis ()=0 |
| function called by the LIMA analyzer on the end of a text part that is to be analyzed | |
Public Member Functions inherited from Lima::AnalysisData | |
| virtual | ~AnalysisData () |
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be defined to handle the events generated by the LIMA linguistic analyzer.
The interface includes functions that are used only in the analysis of structured input
Definition at line 22 of file AbstractAnalysisHandler.h.
|
inlinevirtual |
Definition at line 26 of file AbstractAnalysisHandler.h.
|
pure virtual |
function called by the LIMA analyzer on the end of a text part that is to be analyzed
Implemented in Lima::LinguisticProcessing::BowDocumentHandler, Lima::LinguisticProcessing::BowDocumentWriter, Lima::LinguisticProcessing::BowTextHandler, Lima::LinguisticProcessing::BowTextWriter, Lima::LinguisticProcessing::CompactFullDocumentHandler, Lima::LinguisticProcessing::FakeHandler, Lima::LinguisticProcessing::LTRTextHandler, Lima::LinguisticProcessing::MetaDataHandler, Lima::Handler::MultimediaDocumentHandler, Lima::LinguisticProcessing::SBowDocumentWriter, Lima::LinguisticProcessing::SimpleStreamHandler, Lima::XmlBowDocumentHandler, Lima::XmlSimpleHandler, Lima::XmlSimpleStreamHandler, and Lima::LinguisticProcessing::EventAnalysis::EventHandler.
|
pure virtual |
main function of the handler: handle data produced by the dumper at end of the analysis of a given text part.
This data is stored in a generic byte buffer (may be simple text or serialized binary data, according to the type of dumper used)
| buf | the buffer containing the result of the analysis |
| length | the size of the buffer |
Implemented in Lima::LinguisticProcessing::BowDocumentHandler, Lima::LinguisticProcessing::BowDocumentWriter, Lima::LinguisticProcessing::BowTextHandler, Lima::LinguisticProcessing::BowTextWriter, Lima::LinguisticProcessing::CompactFullDocumentHandler, Lima::LinguisticProcessing::FakeHandler, Lima::LinguisticProcessing::LTRTextHandler, Lima::LinguisticProcessing::MetaDataHandler, Lima::Handler::MultimediaDocumentHandler, Lima::LinguisticProcessing::SBowDocumentWriter, Lima::LinguisticProcessing::SimpleStreamHandler, Lima::XmlBowDocumentHandler, Lima::XmlSimpleHandler, Lima::XmlSimpleStreamHandler, Lima::LinguisticProcessing::EventAnalysis::EventHandler, and Lima::AbstractXmlAnalysisHandler.
|
pure virtual |
function called by the LIMA analyzer on start of a new document
| props | the document properties, which can contain some metadata that are automatically generated by the analyzer (such as language, date of analysis etc), and some metadata that are directly extracted from the document to analyze, in case of the analysis of an XML documents (in this case, the configuration of the analysis indicates in which tags the information can be found) function called by the LIMA analyzer on start at end of a document function called by the LIMA analyzer on the start of a text part that is to be analyzed |
Implemented in Lima::AbstractXmlDocumentHandler, Lima::LinguisticProcessing::BowDocumentHandler, Lima::LinguisticProcessing::BowDocumentWriter, Lima::LinguisticProcessing::BowTextHandler, Lima::LinguisticProcessing::BowTextWriter, Lima::LinguisticProcessing::CompactFullDocumentHandler, Lima::LinguisticProcessing::FakeHandler, Lima::LinguisticProcessing::LTRTextHandler, Lima::LinguisticProcessing::MetaDataHandler, Lima::Handler::MultimediaDocumentHandler, Lima::LinguisticProcessing::SBowDocumentWriter, Lima::LinguisticProcessing::SimpleStreamHandler, Lima::XmlBowDocumentHandler, Lima::XmlSimpleHandler, Lima::XmlSimpleStreamHandler, and Lima::LinguisticProcessing::EventAnalysis::EventHandler.