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

This constraint tests if its two argument vertices have at least one common nominal chain. More...

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

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

Public Member Functions

 SameNominalChain (MediaId language, const LimaString &complement=LimaString())
 
 ~SameNominalChain ()
 
bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &v1, const LinguisticGraphVertex &v2, AnalysisContent &analysis) const override
 
- 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 tests if its two argument vertices have at least one common nominal chain.

Definition at line 134 of file HomoSyntagmaticConstraints.h.

Constructor & Destructor Documentation

◆ SameNominalChain()

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

Definition at line 273 of file HomoSyntagmaticConstraints.cpp.

◆ ~SameNominalChain()

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

Definition at line 139 of file HomoSyntagmaticConstraints.h.

Member Function Documentation

◆ operator()()

bool Lima::LinguisticProcessing::SyntacticAnalysis::SameNominalChain::operator() ( const LinguisticAnalysisStructure::AnalysisGraph &  graph,
const LinguisticGraphVertex &  v1,
const LinguisticGraphVertex &  v2,
AnalysisContent &  analysis 
) const
overridevirtual
Todo:
utiliser graph.sameNominalChain ici aussi. Voir pourquoi le test sur first et last vertex pose probleme ici.

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

Definition at line 282 of file HomoSyntagmaticConstraints.cpp.


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