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

A factory for the AbstractLinguisticProcessingClient: contains the registration of all implemented clients that are linked with the program. More...

#include <common/AbstractProcessingClient/AbstractProcessingClient.h>

Inheritance diagram for Lima::AbstractProcessingClientFactory:
Lima::LinguisticProcessing::AbstractLinguisticProcessingClientFactory Lima::LinguisticProcessing::CoreLinguisticProcessingClientFactory

Public Member Functions

virtual void configure (Common::XMLConfigurationFiles::XMLConfigurationFileParser &configuration, std::deque< std::string > langs, std::deque< std::string > pipelines)=0
 This function configures the factory, using an XML configuration file S2-lp.xml.
 
virtual std::shared_ptr< AbstractProcessingClient > createClient () const =0
 This function create a LinguisticProcessing client.
 
virtual ~AbstractProcessingClientFactory ()
 virtual destructor of the LinguisticProcessing client factory
 

Protected Member Functions

 AbstractProcessingClientFactory (const std::string &)
 

Detailed Description

A factory for the AbstractLinguisticProcessingClient: contains the registration of all implemented clients that are linked with the program.

The factory dynamically creates the actual clients from their names.

Definition at line 47 of file AbstractProcessingClient.h.

Constructor & Destructor Documentation

◆ ~AbstractProcessingClientFactory()

virtual Lima::AbstractProcessingClientFactory::~AbstractProcessingClientFactory ( )
inlinevirtual

virtual destructor of the LinguisticProcessing client factory

Definition at line 85 of file AbstractProcessingClient.h.

◆ AbstractProcessingClientFactory()

Lima::AbstractProcessingClientFactory::AbstractProcessingClientFactory ( const std::string &  )
inlineprotected

Definition at line 88 of file AbstractProcessingClient.h.

Member Function Documentation

◆ configure()

virtual void Lima::AbstractProcessingClientFactory::configure ( Common::XMLConfigurationFiles::XMLConfigurationFileParser &  configuration,
std::deque< std::string >  langs,
std::deque< std::string >  pipelines 
)
pure virtual

This function configures the factory, using an XML configuration file S2-lp.xml.

Parameters
configurationthe result of the parsing of the XML configuration file
langsthe languages to configure: several languages may be configured in the same linguistic analyzer client, the actual language of the analysis is given in the analyze() function of the client.
pipelinesthe pipelines to configure: several pipelines may be configured in the same linguistic analyzer client, the actual language of the analysis is given in the analyze() function of the client. Each pipeline configured will initialize all needed processing units and the corresponding linguistic resources.

Implemented in Lima::LinguisticProcessing::CoreLinguisticProcessingClientFactory, and Lima::LinguisticProcessing::AbstractLinguisticProcessingClientFactory.

◆ createClient()

virtual std::shared_ptr< AbstractProcessingClient > Lima::AbstractProcessingClientFactory::createClient ( ) const
pure virtual

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