LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::AbstractAnalysisHandler Class Referenceabstract

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>

Inheritance diagram for Lima::AbstractAnalysisHandler:
Lima::AnalysisData Lima::AbstractXmlAnalysisHandler Lima::AbstractTextualAnalysisHandler Lima::AbstractXmlDocumentHandler Lima::LinguisticProcessing::BowDocumentHandler Lima::LinguisticProcessing::BowDocumentWriter Lima::LinguisticProcessing::BowTextHandler Lima::LinguisticProcessing::BowTextWriter Lima::LinguisticProcessing::CompactFullDocumentHandler Lima::LinguisticProcessing::EventAnalysis::EventHandler Lima::LinguisticProcessing::FakeHandler Lima::LinguisticProcessing::LTRTextHandler Lima::LinguisticProcessing::MetaDataHandler Lima::LinguisticProcessing::SBowDocumentWriter Lima::LinguisticProcessing::SimpleStreamHandler Lima::Handler::MultimediaDocumentHandler Lima::XmlBowDocumentHandler Lima::XmlSimpleHandler Lima::XmlSimpleStreamHandler

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~AbstractAnalysisHandler()

virtual Lima::AbstractAnalysisHandler::~AbstractAnalysisHandler ( )
inlinevirtual

Definition at line 26 of file AbstractAnalysisHandler.h.

Member Function Documentation

◆ endAnalysis()

◆ handle()

virtual void Lima::AbstractAnalysisHandler::handle ( const char *  buf,
int  length 
)
pure virtual

◆ startAnalysis()

virtual void Lima::AbstractAnalysisHandler::startAnalysis ( )
pure virtual

function called by the LIMA analyzer on start of a new document

Parameters
propsthe 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.


The documentation for this class was generated from the following file: