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

This is a MediaProcessUnit which executes deeplima RNN-based PoS tagger and lemmatizer. More...

#include <linguisticProcessing/core/DeepLimaUnits/RnnTokensAnalyzer/RnnTokensAnalyzer.h>

Inheritance diagram for Lima::LinguisticProcessing::DeepLimaUnits::RnnTokensAnalyzer::RnnTokensAnalyzer:
Lima::MediaProcessUnit Lima::AbstractProcessUnit< MediaProcessUnit, MediaProcessUnitInitializationParameters > Lima::InitializableObject< Base, InitializationParameters >

Public Member Functions

 RnnTokensAnalyzer ()
 
 ~RnnTokensAnalyzer () override
 
void init (Lima::Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
 initialize with parameters from configuration file.
 
LimaStatusCode process (AnalysisContent &analysis) const override
 Process on data in analysisContent.
 
- 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
 

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.
 
- Protected Attributes inherited from Lima::InitializableObject< Base, InitializationParameters >
std::string m_id
 

Detailed Description

This is a MediaProcessUnit which executes deeplima RNN-based PoS tagger and lemmatizer.

The text is supposed to be already tokenized.

As a ProcessUnit, it has an init and a process function. See ProcessUnit for details.

IOPES:

  • Output:
  • Preconditions:
  • Effects:
    Author
    Tristan Derouet

Definition at line 33 of file RnnTokensAnalyzer.h.

Constructor & Destructor Documentation

◆ RnnTokensAnalyzer()

Lima::LinguisticProcessing::DeepLimaUnits::RnnTokensAnalyzer::RnnTokensAnalyzer::RnnTokensAnalyzer ( )

Definition at line 97 of file RnnTokensAnalyzer.cpp.

◆ ~RnnTokensAnalyzer()

Lima::LinguisticProcessing::DeepLimaUnits::RnnTokensAnalyzer::RnnTokensAnalyzer::~RnnTokensAnalyzer ( )
override

Definition at line 101 of file RnnTokensAnalyzer.cpp.

Member Function Documentation

◆ init()

void Lima::LinguisticProcessing::DeepLimaUnits::RnnTokensAnalyzer::RnnTokensAnalyzer::init ( Lima::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 106 of file RnnTokensAnalyzer.cpp.

◆ process()

Lima::LimaStatusCode Lima::LinguisticProcessing::DeepLimaUnits::RnnTokensAnalyzer::RnnTokensAnalyzer::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

Creates the posgraph with the second parameter (deleteTokenWhenDestroyed) set to false as the tokens are owned by the anagraph

Note
: tokens newly created later will be owned by their creator and have to be deleted by this one

Creation of an annotation graph if necessary

Creates a node in the annotation graph for each node of the morphosyntactic graph. Each new node is annotated with the name mrphv and associated to the morphosyntactic vertex number

Construction of the tokens used in the tagger.

Implements Lima::MediaProcessUnit.

Definition at line 116 of file RnnTokensAnalyzer.cpp.


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