![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
A factory for the AbstractLinguisticProcessingClient: contains the registration of all implemented clients that are linked with the program. More...
#include <linguisticProcessing/client/AbstractLinguisticProcessingClient.h>
Public Member Functions | |
| 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 | |
Public Member Functions inherited from Lima::RegistrableFactory< AbstractLinguisticProcessingClientFactory > | |
| virtual | ~RegistrableFactory ()=default |
Public Member Functions inherited from Lima::AbstractProcessingClientFactory | |
| virtual | ~AbstractProcessingClientFactory () |
| virtual destructor of the LinguisticProcessing client factory | |
Protected Member Functions | |
| AbstractLinguisticProcessingClientFactory (const std::string &id) | |
Protected Member Functions inherited from Lima::RegistrableFactory< AbstractLinguisticProcessingClientFactory > | |
| RegistrableFactory (const std::string &id) | |
| Constructor is protected, and must be redefined by subclass. | |
Protected Member Functions inherited from Lima::AbstractProcessingClientFactory | |
| AbstractProcessingClientFactory (const std::string &) | |
Additional Inherited Members | |
Static Public Member Functions inherited from Lima::RegistrableFactory< AbstractLinguisticProcessingClientFactory > | |
| static std::shared_ptr< AbstractLinguisticProcessingClientFactory > | getFactory (const std::string &id) |
| get the factory corresponding to the given id | |
| static std::deque< std::string > | getRegisteredFactories () |
| get the list of factories registered | |
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 102 of file AbstractLinguisticProcessingClient.h.
|
inlinevirtual |
virtual destructor of the LinguisticProcessing client factory
Definition at line 140 of file AbstractLinguisticProcessingClient.h.
|
inlineprotected |
Definition at line 143 of file AbstractLinguisticProcessingClient.h.
|
overridepure virtual |
This function configures the factory, using an XML configuration file S2-lp.xml.
| configuration | the result of the parsing of the XML configuration file |
| langs | the 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. |
| pipelines | the 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. |
Implements Lima::AbstractProcessingClientFactory.
Implemented in Lima::LinguisticProcessing::CoreLinguisticProcessingClientFactory.
|
overridepure virtual |
This function create a LinguisticProcessing client.
Implements Lima::AbstractProcessingClientFactory.
Implemented in Lima::LinguisticProcessing::CoreLinguisticProcessingClientFactory.