LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SyntacticAnalyzer-hetero.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
16
17#ifndef LIMA_SYNTACTICANALYSIS_SYNTACTICANALYZERDEPS_HETERO_H
18#define LIMA_SYNTACTICANALYSIS_SYNTACTICANALYZERDEPS_HETERO_H
19
21#include "SyntacticData.h"
24
25namespace Lima {
26namespace LinguisticProcessing {
27namespace SyntacticAnalysis {
28
29#define SYNTACTICANALYZERDEPSHETERO_CLASSID "SyntacticAnalyzerDepsHetero"
30
32{
33public:
38
39 void init(
41 GroupConfigurationStructure& unitConfiguration,
42 Manager* manager) override;
43
44 LimaStatusCode process(AnalysisContent& analysis) const override;
45
46 unsigned char getLanguage() const;
47
48private:
49
50protected:
51 MediaId m_language;
52 std::shared_ptr<Automaton::Recognizer> m_recognizer;
53 std::map< Common::MediaticData::SyntacticRelationId, std::shared_ptr<Automaton::Recognizer> > m_subSentRecognizers;
57private:
58 LimaStatusCode recopyCoordinationStrings(Lima::AnalysisContent& analysis) const;
59};
60
61//**********************************************************************
62// inline functions
63inline unsigned char SyntacticAnalyzerDepsHetero::getLanguage() const {
64 return m_language;
65}
66
67} // end namespace
68} // end namespace
69} // end namespace
70
71#endif
#define LIMA_SYNTACTICANALYSIS_EXPORT
Data used for the syntactic analyzis of texts.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
InitializableObjectManager< MediaProcessUnit, MediaProcessUnitInitializationParameters > Manager
std::map< Common::MediaticData::SyntacticRelationId, std::shared_ptr< Automaton::Recognizer > > m_subSentRecognizers
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
LimaStatusCode process(AnalysisContent &analysis) const override
Process on data in analysisContent.
SyntacticAnalyzerDepsHetero & operator=(const SyntacticAnalyzerDepsHetero &)
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236