![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
This action appends a value to the previously set value of a feature for an entity during the recognition of the entity (i.e. More...
#include <linguisticProcessing/core/SpecificEntities/SpecificEntitiesConstraints.h>
Public Member Functions | |
| AppendEntityFeature (MediaId language, const LimaString &complement=LimaString()) | |
| ~AppendEntityFeature () | |
| bool | operator() (const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &vertex, AnalysisContent &analysis) const override |
| unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter). | |
| uint64_t | minPos (const uint64_t pos1, const uint64_t pos2) const |
| uint64_t | maxPos (const uint64_t pos1, const uint64_t pos2) const |
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() (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 |
This action appends a value to the previously set value of a feature for an entity during the recognition of the entity (i.e.
during the rule matching process). Appends performs a concatenation when the type of the property is a string. Appends performs an addition when the type of the property is an int. Unary operator: associate the given vertex to the entity feature specified in the complement. Binary operator: associate the string delimited by the two vertices to the entity feature specified in the complement.
Definition at line 196 of file SpecificEntitiesConstraints.h.
| Lima::LinguisticProcessing::SpecificEntities::AppendEntityFeature::AppendEntityFeature | ( | MediaId | language, |
| const LimaString & | complement = LimaString() |
||
| ) |
Definition at line 1185 of file SpecificEntitiesConstraints.cpp.
|
inline |
Definition at line 201 of file SpecificEntitiesConstraints.h.
| uint64_t Lima::LinguisticProcessing::SpecificEntities::AppendEntityFeature::maxPos | ( | const uint64_t | pos1, |
| const uint64_t | pos2 | ||
| ) | const |
Definition at line 1223 of file SpecificEntitiesConstraints.cpp.
| uint64_t Lima::LinguisticProcessing::SpecificEntities::AppendEntityFeature::minPos | ( | const uint64_t | pos1, |
| const uint64_t | pos2 | ||
| ) | const |
Definition at line 1213 of file SpecificEntitiesConstraints.cpp.
|
overridevirtual |
unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter).
Function is not pure virtual because it can be unary or binary.
Reimplemented from Lima::LinguisticProcessing::Automaton::ConstraintFunction.
Definition at line 1233 of file SpecificEntitiesConstraints.cpp.