#include <linguisticProcessing/core/Automaton/rule.h>
|
| | Rule () |
| |
| | Rule (const Rule &) |
| |
| | ~Rule () |
| |
| Rule & | operator= (const Rule &) |
| |
| bool | operator< (const Rule &r) |
| |
| void | reinit () |
| |
| TransitionUnit * | getTrigger () const |
| |
| Automaton const & | leftAutomaton () const |
| |
| Automaton const & | rightAutomaton () const |
| |
| Common::MediaticData::EntityType | getType () const |
| |
| LinguisticCode | getLinguisticProperties () const |
| |
| const LimaString & | getNormalizedForm () const |
| |
| uint64_t | numberOfConstraints () const |
| |
| bool | contextual () const |
| |
| bool | negative () const |
| |
| const std::vector< Constraint > & | getActions () const |
| |
| const std::vector< std::pair< LimaString, Constraint > > & | getActionsWithOneArgument () const |
| |
| double | getWeight () const |
| |
| const std::string & | getRuleId () const |
| |
| void | setTrigger (TransitionUnit *) |
| |
| void | setLeftAutomaton (const Automaton &) |
| |
| void | setRightAutomaton (const Automaton &) |
| |
| void | setType (const Common::MediaticData::EntityType &) |
| |
| void | setLinguisticProperties (const LinguisticCode &) |
| |
| void | setNormalizedForm (const LimaString &) |
| |
| void | setNumberOfConstraints (const uint64_t) |
| |
| void | incrementNumberOfConstraints () |
| |
| void | setContextual (const bool) |
| |
| void | setNegative (const bool) |
| |
| void | addAction (const Constraint &c) |
| |
| void | addAction (const Constraint &c, const LimaString &ruleElemntId) |
| |
| void | setWeight (const double &w) |
| |
| void | setHasLeftRightConstraint (const bool v) |
| |
| void | setRuleId (const std::string &ruleId) |
| |
| bool | test (const LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &leftContext, const LinguisticGraphVertex &rightContext, const LinguisticGraphVertex &leftLimit, const LinguisticGraphVertex &rightLimit, AnalysisContent &analysis, RecognizerMatch &leftmatch, RecognizerMatch &rightmatch, ConstraintCheckList &, ForwardSearch &forward, BackwardSearch &backward, const AutomatonControlParams &controlParams) const |
| | test the rule on a morphological graph : the trigger has already been tested: test only left and right context
|
| |
| bool | executeActions (const LinguisticAnalysisStructure::AnalysisGraph &graph, AnalysisContent &analysis, ConstraintCheckList &constraintCheckList, const bool success, RecognizerMatch *result) const |
| |
Definition at line 37 of file rule.h.
◆ Rule() [1/2]
| Lima::LinguisticProcessing::Automaton::Rule::Rule |
( |
| ) |
|
◆ Rule() [2/2]
| Lima::LinguisticProcessing::Automaton::Rule::Rule |
( |
const Rule & |
r | ) |
|
◆ ~Rule()
| Lima::LinguisticProcessing::Automaton::Rule::~Rule |
( |
| ) |
|
◆ addAction() [1/2]
| void Lima::LinguisticProcessing::Automaton::Rule::addAction |
( |
const Constraint & |
c | ) |
|
|
inline |
◆ addAction() [2/2]
| void Lima::LinguisticProcessing::Automaton::Rule::addAction |
( |
const Constraint & |
c, |
|
|
const LimaString & |
ruleElemntId |
|
) |
| |
|
inline |
◆ contextual()
| bool Lima::LinguisticProcessing::Automaton::Rule::contextual |
( |
| ) |
const |
|
inline |
◆ copy()
| void Lima::LinguisticProcessing::Automaton::Rule::copy |
( |
const Rule & |
r | ) |
|
|
protected |
◆ executeActions()
◆ freeMem()
| void Lima::LinguisticProcessing::Automaton::Rule::freeMem |
( |
| ) |
|
|
protected |
◆ getActions()
| const std::vector< Constraint > & Lima::LinguisticProcessing::Automaton::Rule::getActions |
( |
| ) |
const |
|
inline |
◆ getActionsWithOneArgument()
| const std::vector< std::pair< LimaString, Constraint > > & Lima::LinguisticProcessing::Automaton::Rule::getActionsWithOneArgument |
( |
| ) |
const |
|
inline |
◆ getLinguisticProperties()
| LinguisticCode Lima::LinguisticProcessing::Automaton::Rule::getLinguisticProperties |
( |
| ) |
const |
|
inline |
◆ getNormalizedForm()
| const LimaString & Lima::LinguisticProcessing::Automaton::Rule::getNormalizedForm |
( |
| ) |
const |
|
inline |
◆ getRuleId()
| const std::string & Lima::LinguisticProcessing::Automaton::Rule::getRuleId |
( |
| ) |
const |
|
inline |
◆ getTrigger()
| TransitionUnit * Lima::LinguisticProcessing::Automaton::Rule::getTrigger |
( |
| ) |
const |
|
inline |
◆ getType()
◆ getWeight()
| double Lima::LinguisticProcessing::Automaton::Rule::getWeight |
( |
| ) |
const |
|
inline |
◆ incrementNumberOfConstraints()
| void Lima::LinguisticProcessing::Automaton::Rule::incrementNumberOfConstraints |
( |
| ) |
|
|
inline |
◆ init()
| void Lima::LinguisticProcessing::Automaton::Rule::init |
( |
| ) |
|
|
protected |
◆ leftAutomaton()
| Automaton const & Lima::LinguisticProcessing::Automaton::Rule::leftAutomaton |
( |
| ) |
const |
|
inline |
◆ negative()
| bool Lima::LinguisticProcessing::Automaton::Rule::negative |
( |
| ) |
const |
|
inline |
◆ numberOfConstraints()
| uint64_t Lima::LinguisticProcessing::Automaton::Rule::numberOfConstraints |
( |
| ) |
const |
|
inline |
◆ operator<()
| bool Lima::LinguisticProcessing::Automaton::Rule::operator< |
( |
const Rule & |
r | ) |
|
◆ operator=()
| Rule & Lima::LinguisticProcessing::Automaton::Rule::operator= |
( |
const Rule & |
r | ) |
|
◆ reinit()
| void Lima::LinguisticProcessing::Automaton::Rule::reinit |
( |
| ) |
|
◆ rightAutomaton()
| Automaton const & Lima::LinguisticProcessing::Automaton::Rule::rightAutomaton |
( |
| ) |
const |
|
inline |
◆ setContextual()
| void Lima::LinguisticProcessing::Automaton::Rule::setContextual |
( |
const bool |
c | ) |
|
|
inline |
◆ setHasLeftRightConstraint()
| void Lima::LinguisticProcessing::Automaton::Rule::setHasLeftRightConstraint |
( |
const bool |
v | ) |
|
|
inline |
◆ setLeftAutomaton()
| void Lima::LinguisticProcessing::Automaton::Rule::setLeftAutomaton |
( |
const Automaton & |
a | ) |
|
|
inline |
◆ setLinguisticProperties()
| void Lima::LinguisticProcessing::Automaton::Rule::setLinguisticProperties |
( |
const LinguisticCode & |
l | ) |
|
|
inline |
◆ setNegative()
| void Lima::LinguisticProcessing::Automaton::Rule::setNegative |
( |
const bool |
c | ) |
|
|
inline |
◆ setNormalizedForm()
| void Lima::LinguisticProcessing::Automaton::Rule::setNormalizedForm |
( |
const LimaString & |
s | ) |
|
|
inline |
◆ setNumberOfConstraints()
| void Lima::LinguisticProcessing::Automaton::Rule::setNumberOfConstraints |
( |
const uint64_t |
n | ) |
|
|
inline |
◆ setRightAutomaton()
| void Lima::LinguisticProcessing::Automaton::Rule::setRightAutomaton |
( |
const Automaton & |
a | ) |
|
|
inline |
◆ setRuleId()
| void Lima::LinguisticProcessing::Automaton::Rule::setRuleId |
( |
const std::string & |
ruleId | ) |
|
|
inline |
◆ setTrigger()
| void Lima::LinguisticProcessing::Automaton::Rule::setTrigger |
( |
TransitionUnit * |
t | ) |
|
|
inline |
◆ setType()
◆ setWeight()
| void Lima::LinguisticProcessing::Automaton::Rule::setWeight |
( |
const double & |
w | ) |
|
|
inline |
◆ test()
| bool Lima::LinguisticProcessing::Automaton::Rule::test |
( |
const LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph & |
graph, |
|
|
const LinguisticGraphVertex & |
leftContext, |
|
|
const LinguisticGraphVertex & |
rightContext, |
|
|
const LinguisticGraphVertex & |
leftLimit, |
|
|
const LinguisticGraphVertex & |
rightLimit, |
|
|
AnalysisContent & |
analysis, |
|
|
RecognizerMatch & |
leftmatch, |
|
|
RecognizerMatch & |
rightmatch, |
|
|
ConstraintCheckList & |
constraintCheckList, |
|
|
ForwardSearch & |
forward, |
|
|
BackwardSearch & |
backward, |
|
|
const AutomatonControlParams & |
controlParams |
|
) |
| const |
test the rule on a morphological graph : the trigger has already been tested: test only left and right context
- Parameters
-
| graph | the graph |
| leftContext | the vertex at the beginning of the left context |
| rightContext | the vertex at the beginning of the right context |
| leftLimit | the limit vertex for the left context |
| rightLimit | the limit vertex for the right context |
| analysis | the content of the analysis (may be modified) |
| leftmatch | the resulting match for left context |
| rightmatch | the resulting match for right context |
- Returns
- true if a match was found, false otherwise
Definition at line 162 of file rule.cpp.
◆ AutomatonReader
◆ AutomatonWriter
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ m_actions
| std::vector<Constraint> Lima::LinguisticProcessing::Automaton::Rule::m_actions |
|
protected |
◆ m_actionsWithOneArgument
| std::vector<std::pair<LimaString,Constraint> > Lima::LinguisticProcessing::Automaton::Rule::m_actionsWithOneArgument |
|
protected |
◆ m_contextual
| bool Lima::LinguisticProcessing::Automaton::Rule::m_contextual |
|
protected |
◆ m_hasLeftRightConstraint
| bool Lima::LinguisticProcessing::Automaton::Rule::m_hasLeftRightConstraint |
|
protected |
◆ m_left
| Automaton Lima::LinguisticProcessing::Automaton::Rule::m_left |
|
protected |
◆ m_lingProp
| LinguisticCode Lima::LinguisticProcessing::Automaton::Rule::m_lingProp |
|
protected |
◆ m_negative
| bool Lima::LinguisticProcessing::Automaton::Rule::m_negative |
|
protected |
◆ m_normalizedForm
| LimaString Lima::LinguisticProcessing::Automaton::Rule::m_normalizedForm |
|
protected |
◆ m_numberOfConstraints
| uint64_t Lima::LinguisticProcessing::Automaton::Rule::m_numberOfConstraints |
|
protected |
◆ m_right
| Automaton Lima::LinguisticProcessing::Automaton::Rule::m_right |
|
protected |
◆ m_ruleId
| std::string Lima::LinguisticProcessing::Automaton::Rule::m_ruleId |
|
protected |
◆ m_trigger
| TransitionUnit* Lima::LinguisticProcessing::Automaton::Rule::m_trigger |
|
protected |
◆ m_type
◆ m_weight
| double Lima::LinguisticProcessing::Automaton::Rule::m_weight |
|
protected |
The documentation for this class was generated from the following files:
- lima_linguisticprocessing/src/linguisticProcessing/core/Automaton/rule.h
- lima_linguisticprocessing/src/linguisticProcessing/core/Automaton/rule.cpp