10#ifndef LIMA_LINGUISTICPROCESSING_ABSTRACTLINGUISTICANALYZERCLIENT_H
11#define LIMA_LINGUISTICPROCESSING_ABSTRACTLINGUISTICANALYZERCLIENT_H
26namespace LinguisticProcessing
76 virtual std::shared_ptr<AnalysisContent>
analyze(
78 const std::map<std::string,std::string>& metaData,
79 const std::string& pipeline,
80 const std::map<std::string, AbstractAnalysisHandler*>& handlers,
81 const std::set<std::string>& inactiveUnits = std::set<std::string>())
const = 0;
88 virtual std::shared_ptr<AnalysisContent>
analyze(
89 const std::string& text,
90 const std::map<std::string,std::string>& metaData,
91 const std::string& pipeline,
92 const std::map<std::string, AbstractAnalysisHandler*>& handlers,
93 const std::set<std::string>& inactiveUnits = std::set<std::string>())
const override = 0;
129 std::deque<std::string> langs,
130 std::deque<std::string> pipelines)
override = 0;
135 virtual std::shared_ptr< AbstractProcessingClient >
createClient()
const override = 0;
#define LIMA_LINGUISTICPROCESSIONGCLIENT_EXPORT
A factory for the AbstractLinguisticProcessingClient: contains the registration of all implemented cl...
mother class of (abstract) clients that analyse content.
Parser class for the lima's xml configuration files.
A factory for the AbstractLinguisticProcessingClient: contains the registration of all implemented cl...
AbstractLinguisticProcessingClientFactory(const std::string &id)
virtual void configure(Common::XMLConfigurationFiles::XMLConfigurationFileParser &configuration, std::deque< std::string > langs, std::deque< std::string > pipelines) override=0
This function configures the factory, using an XML configuration file S2-lp.xml.
virtual std::shared_ptr< AbstractProcessingClient > createClient() const override=0
This function create a LinguisticProcessing client.
virtual ~AbstractLinguisticProcessingClientFactory()
virtual destructor of the LinguisticProcessing client factory
AbstractLinguisticProcessingClient defines the common interface that provides all the services of the...
virtual std::shared_ptr< AnalysisContent > analyze(const QString &text, const std::map< std::string, std::string > &metaData, const std::string &pipeline, const std::map< std::string, AbstractAnalysisHandler * > &handlers, const std::set< std::string > &inactiveUnits=std::set< std::string >()) const =0
This function runs the linguistic analysis on a simple text, specifying the language,...
virtual std::shared_ptr< AnalysisContent > analyze(const std::string &text, const std::map< std::string, std::string > &metaData, const std::string &pipeline, const std::map< std::string, AbstractAnalysisHandler * > &handlers, const std::set< std::string > &inactiveUnits=std::set< std::string >()) const override=0
This function is the same as the previous one but takes a text in UTF-8 format.
virtual ~AbstractLinguisticProcessingClient()
define a virtual destructor to ensure concrete client destructors to be called
Defines a Factory that automatically register to a MainFactory singleton.