![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
This class is a processing unit that can be inserted in an analysis pipeline. More...
#include <linguisticProcessing/core/SyntacticAnalysis/SyntacticAnalyzer-nochains.h>
Public Member Functions | |
| SyntacticAnalyzerNoChains () | |
| Default constructor. | |
| virtual | ~SyntacticAnalyzerNoChains () |
| Default destructor. | |
| void | init (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override |
| Process unit initialization function. | |
| LimaStatusCode | process (AnalysisContent &analysis) const override |
| Process unit main processing function. | |
| void | identifyChains (SyntacticData *data, const LinguisticGraphVertex &s, const LinguisticGraphVertex &t, uint64_t &startChainId) const |
| First step of the syntactic analysis. | |
| MediaId | language () const |
| Read accessor to the language of the analyzed text. | |
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 |
| The language of the analyzed text. | |
| std::shared_ptr< SyntagmDefStruct > | m_chainMatrix |
| A pointer onto the chains definition matrices. | |
| uint64_t | m_maxChainsNbByVertex |
| Sets the max number of chains on one vertex. | |
| uint64_t | m_maxChainLength |
| Sets the max length of a chain. | |
| const Common::PropertyCode::PropertyAccessor * | m_macroAccessor |
| const Common::PropertyCode::PropertyAccessor * | m_microAccessor |
| LinguisticCode | m_ponctuCategory |
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. | |
This class is a processing unit that can be inserted in an analysis pipeline.
It builds the nominal and verbal chains.
This is the first step of the syntactic analysis. It works on a pointer to a graph holding all syntactic data. Nominal and verbal chains are maximal syntagms linking together words related to, repectively, a noun and a verb. They have no real linguistic validity but are useful to find compounds
It is a MediaProcessUnit. It accepts the following parameters:
Definition at line 56 of file SyntacticAnalyzer-nochains.h.
| Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerNoChains::SyntacticAnalyzerNoChains | ( | ) |
|
inlinevirtual |
| void Lima::LinguisticProcessing::SyntacticAnalysis::SyntacticAnalyzerNoChains::identifyChains | ( | SyntacticData * | data, |
| const LinguisticGraphVertex & | s, | ||
| const LinguisticGraphVertex & | t, | ||
| uint64_t & | startChainId | ||
| ) | const |
First step of the syntactic analysis.
Identify nominal and verbal chains in the subgraph defined by the given two vertices.
| s | IN const LinguisticGraphVertex& The source vertex from which chains will be searched for |
| t | IN const LinguisticGraphVertex& The target vertex after which chains will not be searched for |
| startChainId | IN/OUT uint64_t& The first chain id to use for new chains. Given by reference to be able to update the value in the caller. |
Definition at line 165 of file SyntacticAnalyzer-nochains.cpp.
|
overridevirtual |
Process unit initialization function.
| unitConfiguration | IN GroupConfigurationStructure& Reference to this process unit configuration group in the configuration. |
| manager | IN Manager* Process unit manager. |
| InvalidConfiguration,std::exception |
Implements Lima::MediaProcessUnit.
Definition at line 52 of file SyntacticAnalyzer-nochains.cpp.
|
inline |
Read accessor to the language of the analyzed text.
Definition at line 264 of file SyntacticAnalyzer-nochains.h.
|
overridevirtual |
Process unit main processing function.
| analysis | IN/OUT AnalysisContent& Reference to the structure holding the analysis data |
Implements Lima::MediaProcessUnit.
Definition at line 106 of file SyntacticAnalyzer-nochains.cpp.
|
protected |
A pointer onto the chains definition matrices.
Only used to initialize the SyntacticData in the process method.
Definition at line 238 of file SyntacticAnalyzer-nochains.h.
|
protected |
The language of the analyzed text.
Definition at line 232 of file SyntacticAnalyzer-nochains.h.
|
protected |
Definition at line 259 of file SyntacticAnalyzer-nochains.h.
|
protected |
Sets the max length of a chain.
This is a combinatorial explosion limiter parameter. A soon as a chain length reach the value of this member, it will no be authorized to be longer. It is then validated or reduced up to the last chain end vertex. It is initialized by the syntactic analysis maxChainLength configuration parameter or has a default value.
Definition at line 257 of file SyntacticAnalyzer-nochains.h.
|
protected |
Sets the max number of chains on one vertex.
This is a combinatorial explosion limiter parameter. A soon as there is this number of different chains on one vertex, this one will be added in the list of finished vertices. It is initialized by the syntactic analysis maxChainsNbByVertex configuration parameter or has a default value.
Definition at line 247 of file SyntacticAnalyzer-nochains.h.
|
protected |
Definition at line 260 of file SyntacticAnalyzer-nochains.h.
|
protected |
Definition at line 261 of file SyntacticAnalyzer-nochains.h.