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

This action clears features stored for one entity. More...

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

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

Public Member Functions

 ClearEntityFeatures (MediaId language, const LimaString &complement=LimaString())
 
 ~ClearEntityFeatures ()
 
bool operator() (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)
 
- 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() (RecognizerMatch &, 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: uses the result of the match
 
virtual bool actionNeedsRecognizedExpression ()
 
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 clears features stored for one entity.

This action needs to be called if rule matching fails (otherwise, features are accumulated from different matching tests)

Definition at line 220 of file SpecificEntitiesConstraints.h.

Constructor & Destructor Documentation

◆ ClearEntityFeatures()

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

Definition at line 1330 of file SpecificEntitiesConstraints.cpp.

◆ ~ClearEntityFeatures()

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

Definition at line 225 of file SpecificEntitiesConstraints.h.

Member Function Documentation

◆ operator()()

bool Lima::LinguisticProcessing::SpecificEntities::ClearEntityFeatures::operator() ( 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)

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

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

Definition at line 1335 of file SpecificEntitiesConstraints.cpp.


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