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

This action creates a new vertex for given match containing a specific entity's data. More...

#include <linguisticProcessing/core/SpecificEntities/SpecificEntitiesConstraints.h>

Inheritance diagram for Lima::LinguisticProcessing::SpecificEntities::CreateSpecificEntity:
Lima::LinguisticProcessing::Automaton::ConstraintFunction

Public Member Functions

 CreateSpecificEntity (MediaId language, const LimaString &complement=LimaString())
 ~CreateSpecificEntity ()
bool operator() (Automaton::RecognizerMatch &match, AnalysisContent &analysis) const override
bool actionNeedsRecognizedExpression () override
Public Member Functions inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
virtual ~ConstraintFunction ()
virtual bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &, const LinguisticGraphVertex &, const LinguisticGraphVertex &, AnalysisContent &) const
 binary constraint function : the constraint only applies on two vertices in the graph (the graph is also given as a parameter).
virtual bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &, const LinguisticGraphVertex &, AnalysisContent &) const
 unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter).
virtual bool operator() (AnalysisContent &) const
 zero-ary constraint function : applies the function without a vertex indication (used for actions, not constraints -> applied only at end, when a match is found)
const LimaString & getComplementString ()
unsigned char getLanguage ()

Additional Inherited Members

Protected Member Functions inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
 ConstraintFunction (MediaId language, const LimaString &complement=LimaString())
Protected Attributes inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
MediaId m_language_id
LimaString m_complement

Detailed Description

This action creates a new vertex for given match containing a specific entity's data.

Algorithm to set the new vertex linguistic properties:

  • if a list of micro-categories is given in the complement and the entity head have one (or more) of these micro categories, then the head micro categories present in the complement list are kept
  • elsewhere, the mapping present in the configuration files between the entity type and a micro-category is used

Definition at line 74 of file SpecificEntitiesConstraints.h.

Constructor & Destructor Documentation

◆ CreateSpecificEntity()

Lima::LinguisticProcessing::SpecificEntities::CreateSpecificEntity::CreateSpecificEntity ( MediaId language,
const LimaString & complement = LimaString() )

Definition at line 155 of file SpecificEntitiesConstraints.cpp.

◆ ~CreateSpecificEntity()

Lima::LinguisticProcessing::SpecificEntities::CreateSpecificEntity::~CreateSpecificEntity ( )
inline

Definition at line 79 of file SpecificEntitiesConstraints.h.

Member Function Documentation

◆ actionNeedsRecognizedExpression()

bool Lima::LinguisticProcessing::SpecificEntities::CreateSpecificEntity::actionNeedsRecognizedExpression ( )
inlineoverridevirtual

◆ operator()()

bool Lima::LinguisticProcessing::SpecificEntities::CreateSpecificEntity::operator() ( Automaton::RecognizerMatch & match,
AnalysisContent & analysis ) const
overridevirtual
Todo
Verifier la Completude du mapping entre graphes morpho, synt et d'annotation

Reimplemented from Lima::LinguisticProcessing::Automaton::ConstraintFunction.

Definition at line 215 of file SpecificEntitiesConstraints.cpp.


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