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

This action performs the normalization of an entity according to stored features. More...

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

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

Public Member Functions

 NormalizeEntity (MediaId language, const LimaString &complement=LimaString())
 
 ~NormalizeEntity ()
 
bool operator() (Automaton::RecognizerMatch &match, AnalysisContent &analysis) const override
 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: uses the result of the match
 
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 performs the normalization of an entity according to stored features.

This action uses the features stored by the setEntityFeature() function to perform the normalization of the entity.

Definition at line 238 of file SpecificEntitiesConstraints.h.

Constructor & Destructor Documentation

◆ NormalizeEntity()

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

Definition at line 1349 of file SpecificEntitiesConstraints.cpp.

◆ ~NormalizeEntity()

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

Definition at line 243 of file SpecificEntitiesConstraints.h.

Member Function Documentation

◆ actionNeedsRecognizedExpression()

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

◆ operator()()

bool Lima::LinguisticProcessing::SpecificEntities::NormalizeEntity::operator() ( Automaton::RecognizerMatch &  ,
AnalysisContent &   
) const
overridevirtual

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: uses the result of the match

Returns
true if the action of the function succeeded, false otherwise

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

Definition at line 1354 of file SpecificEntitiesConstraints.cpp.


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