LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractLinguisticProcessingClient.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSING_ABSTRACTLINGUISTICANALYZERCLIENT_H
11#define LIMA_LINGUISTICPROCESSING_ABSTRACTLINGUISTICANALYZERCLIENT_H
12
21
22#include <memory>
23
24namespace Lima
25{
26namespace LinguisticProcessing
27{
28
40{
41
42public:
43
49
76 virtual std::shared_ptr<AnalysisContent> analyze(
77 const QString& text,
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;
82
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;
94};
95
102class AbstractLinguisticProcessingClientFactory : public RegistrableFactory<AbstractLinguisticProcessingClientFactory>,public AbstractProcessingClientFactory
103{
104public:
105
127 virtual void configure(
129 std::deque<std::string> langs,
130 std::deque<std::string> pipelines) override = 0;
131
135 virtual std::shared_ptr< AbstractProcessingClient > createClient() const override = 0;
136
141
142protected:
146
147};
148
149//documentation for Doxygen main page
283} // LinguisticAnalyzer
284} // Lima
285
286#endif
#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...
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.
NAUTITIA.