LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps Class Reference

This class does the syntactic analysis. More...

#include <linguisticProcessing/core/SyntacticAnalysis/SyntacticAnalyzer-deps.h>

Inheritance diagram for Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps:
Lima::MediaProcessUnit Lima::AbstractProcessUnit< MediaProcessUnit, MediaProcessUnitInitializationParameters > Lima::InitializableObject< Base, InitializationParameters >

Public Member Functions

 SyntacticAnalyzerDeps ()
 
virtual ~SyntacticAnalyzerDeps ()
 
void init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
 initialize with parameters from configuration file.
 
LimaStatusCode process (AnalysisContent &analysis) const override
 Process on data in analysisContent.
 
MediaId language () const
 
- Public Member Functions inherited from Lima::InitializableObject< Base, InitializationParameters >
 InitializableObject ()
 
 InitializableObject (const InitializableObject &object)
 
InitializableObject & operator= (const InitializableObject &object)
 
virtual ~InitializableObject ()
 
const std::string & getId () const
 get the object id
 
void setId (const std::string &id)
 set the object id
 

Protected Attributes

MediaId m_language
 
std::map< std::string, std::shared_ptr< Automaton::Recognizer > > m_recognizers
 
std::deque< std::string > m_actions
 
bool m_applySameRuleWhileSuccess
 
- Protected Attributes inherited from Lima::InitializableObject< Base, InitializationParameters >
std::string m_id
 

Additional Inherited Members

- Public Types inherited from Lima::InitializableObject< Base, InitializationParameters >
typedef InitializableObjectManager< Base, InitializationParameters > Manager
 Manager is the type of the Manager associated to the initializableObject.
 
typedef InitializableObjectFactory< Base > Factory
 Factory is the type of the Factory associated to the initializableObject.
 

Detailed Description

This class does the syntactic analysis.

It works on a pointer to a graph.

It is a MediaProcessUnit. It accepts the following parameters:

  • list:actions : each value is the name of a group in the Resources module whose class is AutomatoRecognizer. This group possesses a rules parameter that points to the compiled rules file that recognizes some dependency relations

Definition at line 43 of file SyntacticAnalyzer-deps.h.

Constructor & Destructor Documentation

◆ SyntacticAnalyzerDeps()

Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::SyntacticAnalyzerDeps ( )

Definition at line 45 of file SyntacticAnalyzer-deps.cpp.

◆ ~SyntacticAnalyzerDeps()

virtual Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::~SyntacticAnalyzerDeps ( )
inlinevirtual

Definition at line 50 of file SyntacticAnalyzer-deps.h.

Member Function Documentation

◆ init()

void Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::init ( Common::XMLConfigurationFiles::GroupConfigurationStructure &  unitConfiguration,
Manager *  manager 
)
overridevirtual

initialize with parameters from configuration file.

Parameters
unitConfiguration@IN : <group> tag in xml configuration file that contains parameters to initialize the object.
manager@IN : manager that asked for initialization and carries init params Use it to initialize other objects of same kind.
Exceptions
InvalidConfigurationwhen parameters are invalids.

Implements Lima::MediaProcessUnit.

Definition at line 52 of file SyntacticAnalyzer-deps.cpp.

◆ language()

MediaId Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::language ( ) const
inline

Definition at line 60 of file SyntacticAnalyzer-deps.h.

◆ process()

LimaStatusCode Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::process ( AnalysisContent &  analysis) const
overridevirtual

Process on data in analysisContent.

This method should not return any exception

Parameters
analysisAnalysisContent object on which to process
Exceptions
UndefinedMethodif this method hasn't been specialized

Implements Lima::MediaProcessUnit.

Definition at line 97 of file SyntacticAnalyzer-deps.cpp.

Member Data Documentation

◆ m_actions

std::deque< std::string > Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::m_actions
protected

Definition at line 69 of file SyntacticAnalyzer-deps.h.

◆ m_applySameRuleWhileSuccess

bool Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::m_applySameRuleWhileSuccess
protected

Definition at line 71 of file SyntacticAnalyzer-deps.h.

◆ m_language

MediaId Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::m_language
protected

Definition at line 65 of file SyntacticAnalyzer-deps.h.

◆ m_recognizers

std::map< std::string, std::shared_ptr<Automaton::Recognizer> > Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerDeps::m_recognizers
protected

Definition at line 67 of file SyntacticAnalyzer-deps.h.


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