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

#include <linguisticProcessing/core/SyntacticAnalysis/SimplificationConstraints.h>

Inheritance diagram for Lima::LinguisticProcessing::SyntacticAnalysis::Simplify:
Lima::LinguisticProcessing::SyntacticAnalysis::ConstraintWithRelationComplement Lima::LinguisticProcessing::Automaton::ConstraintFunction

Public Member Functions

 Simplify (MediaId language, const LimaString &complement=LimaString())
 
 ~Simplify ()
 
bool operator() (Automaton::RecognizerMatch &, AnalysisContent &analysis) const override
 
bool actionNeedsRecognizedExpression () override
 
- Public Member Functions inherited from Lima::LinguisticProcessing::SyntacticAnalysis::ConstraintWithRelationComplement
 ConstraintWithRelationComplement (MediaId language, const LimaString &complement=LimaString())
 
 ~ConstraintWithRelationComplement ()
 
- 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::SyntacticAnalysis::ConstraintWithRelationComplement
Common::MediaticData::SyntacticRelationId m_relation
 
- Protected Attributes inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
MediaId m_language_id
 
LimaString m_complement
 

Detailed Description

Definition at line 60 of file SimplificationConstraints.h.

Constructor & Destructor Documentation

◆ Simplify()

Lima::LinguisticProcessing::SyntacticAnalysis::Simplify::Simplify ( MediaId  language,
const LimaString &  complement = LimaString() 
)
explicit

Definition at line 102 of file SimplificationConstraints.cpp.

◆ ~Simplify()

Lima::LinguisticProcessing::SyntacticAnalysis::Simplify::~Simplify ( )
inline

Definition at line 65 of file SimplificationConstraints.h.

Member Function Documentation

◆ actionNeedsRecognizedExpression()

bool Lima::LinguisticProcessing::SyntacticAnalysis::Simplify::actionNeedsRecognizedExpression ( )
inlineoverridevirtual

◆ operator()()

bool Lima::LinguisticProcessing::SyntacticAnalysis::Simplify::operator() ( Automaton::RecognizerMatch &  ,
AnalysisContent &  analysis 
) const
overridevirtual
Note
Current version supposes a disambiguated graph, i.e. only one path from src to tgt

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

Definition at line 110 of file SimplificationConstraints.cpp.


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