#include <linguisticProcessing/core/ApplyRecognizer/applyRecognizerActions.h>
|
| | CreateAlternative (MediaId language, const LimaString &complement=LimaString()) |
| |
| virtual | ~CreateAlternative () |
| |
| virtual bool | operator() (Automaton::RecognizerMatch &result, 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 |
| |
| 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 () |
| |
|
| std::pair< LinguisticAnalysisStructure::Token *, LinguisticAnalysisStructure::MorphoSyntacticData * > | createAlternativeToken (const Automaton::RecognizerMatch &recognizedExpression) const |
| | Creates the new token corresponding to the idiomatic expression using information from the expression and from the head token of the expression.
|
| |
| bool | getCompatibleProperties (const LinguisticAnalysisStructure::MorphoSyntacticData *headData, const LinguisticCode &baseProperty, std::set< LinguisticCode > &newProperties) const |
| |
| bool | isCompatible (const LinguisticCode &baseProperty, const LinguisticCode &property, LinguisticCode &newProperty) const |
| |
| LinguisticGraphVertex | addAlternativeVertex (LinguisticAnalysisStructure::Token *, LinguisticAnalysisStructure::MorphoSyntacticData *, LinguisticGraph *graph) const |
| |
| void | createBeginAlternative (LinguisticGraphVertex startVertex, LinguisticGraphVertex alternativeFirstVertex, LinguisticGraph &graph) const |
| | create an alternative branch
|
| |
| void | attachEndOfAlternative (LinguisticGraphVertex alternativeLastVertex, LinguisticGraphVertex endVertex, LinguisticGraph &graph) const |
| | attach the end of an alternative to main path
|
| |
| | ConstraintFunction (MediaId language, const LimaString &complement=LimaString()) |
| |
Definition at line 37 of file applyRecognizerActions.h.
◆ CreateAlternative()
| Lima::LinguisticProcessing::ApplyRecognizer::CreateAlternative::CreateAlternative |
( |
MediaId |
language, |
|
|
const LimaString & |
complement = LimaString() |
|
) |
| |
◆ ~CreateAlternative()
| virtual Lima::LinguisticProcessing::ApplyRecognizer::CreateAlternative::~CreateAlternative |
( |
| ) |
|
|
inlinevirtual |
◆ actionNeedsRecognizedExpression()
| bool Lima::LinguisticProcessing::ApplyRecognizer::CreateAlternative::actionNeedsRecognizedExpression |
( |
| ) |
|
|
inlineoverridevirtual |
◆ addAlternativeVertex()
◆ attachEndOfAlternative()
attach the end of an alternative to main path
- Parameters
-
| alternativeLastVertex | last vertex of the alternative to re-attach to the path |
| endVertex | where to attach it on the graph : the endVertex is the last vertex avoided by the alternative : the alternative returns to the main path after the endVertex |
| graph | the graph |
Definition at line 232 of file applyRecognizerActions.cpp.
◆ createAlternativeToken()
Creates the new token corresponding to the idiomatic expression using information from the expression and from the head token of the expression.
- Parameters
-
| recognizedExpression | The recognized expression tokens |
Definition at line 40 of file applyRecognizerActions.cpp.
◆ createBeginAlternative()
create an alternative branch
- Parameters
-
| startVertex | where to start on the graph : the start vertex is the first node to be avoided by the alternative : all previous vertices attached to this node are branched to the alternative |
| alternativeFirstVertex | the first vertex of the alternative |
| graph | the graph |
Definition at line 202 of file applyRecognizerActions.cpp.
◆ getCompatibleProperties()
◆ isCompatible()
◆ operator()()
The documentation for this class was generated from the following files: