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

This constraint creates a aux relation between its two parameters. More...

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

Inheritance diagram for Lima::LinguisticProcessing::SyntacticAnalysis::CreateCompoundTense:
Lima::LinguisticProcessing::Automaton::ConstraintFunction

Public Member Functions

 CreateCompoundTense (MediaId language, const LimaString &complement=LimaString())
 
 ~CreateCompoundTense ()
 
bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &v1, const LinguisticGraphVertex &v2, AnalysisContent &analysis) const override
 binary constraint function : the constraint only applies on two vertices in the graph (the graph is also given as a parameter).
 
- Public Member Functions inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
virtual ~ConstraintFunction ()
 
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)
 
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 constraint creates a aux relation between its two parameters.

Todo:
It was originaly supposed to replace the two vertices (auxiliary and participle) by a uniq verb vertex with the good tense. This is currently disabled as there is then problems for indexing, searching and highligting. A solution should be found to allow again the right behavior.

Definition at line 323 of file HomoSyntagmaticConstraints.h.

Constructor & Destructor Documentation

◆ CreateCompoundTense()

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

Definition at line 748 of file HomoSyntagmaticConstraints.cpp.

◆ ~CreateCompoundTense()

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

Definition at line 328 of file HomoSyntagmaticConstraints.h.

Member Function Documentation

◆ operator()()

bool Lima::LinguisticProcessing::SyntacticAnalysis::CreateCompoundTense::operator() ( const LinguisticAnalysisStructure::AnalysisGraph &  ,
const LinguisticGraphVertex &  ,
const LinguisticGraphVertex &  ,
AnalysisContent &   
) const
overridevirtual

binary constraint function : the constraint only applies on two vertices in the graph (the graph is also given as a parameter).

Function is not pure virtual because it can be unary or binary.

Returns
true if the constraint is verified, false otherwise

if the anagraph is not set to delete the tokens, we have to do it

if the anagraph is not set to delete the morphosyntactic data, we have to do it

Todo:
Creer les annotation idoines, recopier les annotations des anciens noeuds vers les nouveaux

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

Definition at line 800 of file HomoSyntagmaticConstraints.cpp.


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