|
FreeLing
3.0
|
The class completerRule stores rules used by the completer of parse trees. More...
#include <dep_rules.h>

Public Member Functions | |
| completerRule () | |
| constructors | |
| completerRule (const std::wstring &, const std::wstring &, const std::wstring &) | |
| completerRule (const completerRule &) | |
| Constructor. | |
| completerRule & | operator= (const completerRule &) |
| assignment | |
| int | operator< (const completerRule &a) const |
| Comparison. The more weight the higher priority. | |
Public Attributes | |
| std::wstring | leftChk |
| chunk labels to which the rule is applied | |
| std::wstring | rightChk |
| std::list< std::wstring > | leftConds |
| extra conditions on the chunks (lemma, form, class, ...) | |
| std::list< std::wstring > | rightConds |
| boost::u32regex | leftRE |
| RegExp for extra conditions on the chunks (PoS) | |
| boost::u32regex | rightRE |
| std::wstring | newNode1 |
| new label/s (if any) for the nodes after the operation. Also used to store MATCHING labels. | |
| std::wstring | newNode2 |
| std::wstring | operation |
| operation to perform | |
| std::wstring | context |
| context (if any) required to apply the rule | |
| bool | context_neg |
| whether the context is negated | |
| int | weight |
| priority of the rule | |
| parse_tree::iterator | last |
| precomputed last node matching the "last_left/right" condition | |
| std::set< std::wstring > | enabling_flags |
| flags that enable the rule to be applied | |
| std::set< std::wstring > | flags_toggle_on |
| flags to toggle on after applying the rule | |
| std::set< std::wstring > | flags_toggle_off |
| flags to toggle off after applying the rule | |
| int | line |
| line in the file where rule was, useful to trace and issue errors | |
The class completerRule stores rules used by the completer of parse trees.
constructors
Constructor.
| completerRule::completerRule | ( | const std::wstring & | , |
| const std::wstring & | , | ||
| const std::wstring & | |||
| ) |
| completerRule::completerRule | ( | const completerRule & | cr | ) |
Constructor.
References context, context_neg, enabling_flags, flags_toggle_off, flags_toggle_on, last, last, leftChk, leftConds, leftRE, line, newNode1, newNode2, operation, rightChk, rightConds, rightRE, and weight.
| int completerRule::operator< | ( | const completerRule & | a | ) | const |
Comparison. The more weight the higher priority.
Comparison.
The smaller weight, the higher priority
References weight.
| completerRule & completerRule::operator= | ( | const completerRule & | cr | ) |
assignment
Assignment.
References context, context_neg, enabling_flags, flags_toggle_off, flags_toggle_on, last, last, leftChk, leftConds, leftRE, line, newNode1, newNode2, operation, rightChk, rightConds, rightRE, and weight.
| std::wstring completerRule::context |
context (if any) required to apply the rule
Referenced by completer::complete(), completer::completer(), completerRule(), completer::matching_context(), and operator=().
whether the context is negated
Referenced by completer::complete(), completer::completer(), completerRule(), completer::matching_context(), and operator=().
| std::set<std::wstring> completerRule::enabling_flags |
flags that enable the rule to be applied
Referenced by completer::complete(), completer::completer(), completerRule(), completer::enabled_rule(), and operator=().
| std::set<std::wstring> completerRule::flags_toggle_off |
flags to toggle off after applying the rule
Referenced by completer::applyRule(), completer::complete(), completer::completer(), completerRule(), and operator=().
| std::set<std::wstring> completerRule::flags_toggle_on |
flags to toggle on after applying the rule
Referenced by completer::applyRule(), completer::complete(), completer::completer(), completerRule(), and operator=().
precomputed last node matching the "last_left/right" condition
Referenced by completer::applyRule(), completerRule(), completer::matching_operation(), and operator=().
| std::wstring completerRule::leftChk |
chunk labels to which the rule is applied
Referenced by completer::complete(), completer::completer(), completerRule(), and operator=().
| std::list<std::wstring> completerRule::leftConds |
extra conditions on the chunks (lemma, form, class, ...)
Referenced by completer::complete(), completer::completer(), completerRule(), and operator=().
| boost::u32regex completerRule::leftRE |
RegExp for extra conditions on the chunks (PoS)
Referenced by completer::completer(), completerRule(), and operator=().
line in the file where rule was, useful to trace and issue errors
Referenced by completer::complete(), completer::completer(), completerRule(), and operator=().
| std::wstring completerRule::newNode1 |
new label/s (if any) for the nodes after the operation. Also used to store MATCHING labels.
Referenced by completer::applyRule(), completer::complete(), completer::completer(), completerRule(), completer::matching_operation(), and operator=().
| std::wstring completerRule::newNode2 |
Referenced by completer::applyRule(), completer::complete(), completer::completer(), completerRule(), and operator=().
| std::wstring completerRule::operation |
operation to perform
Referenced by completer::applyRule(), completer::complete(), completer::completer(), completerRule(), completer::matching_operation(), and operator=().
| std::wstring completerRule::rightChk |
Referenced by completer::complete(), completer::completer(), completerRule(), and operator=().
| std::list<std::wstring> completerRule::rightConds |
Referenced by completer::complete(), completer::completer(), completerRule(), and operator=().
| boost::u32regex completerRule::rightRE |
Referenced by completer::completer(), completerRule(), and operator=().
priority of the rule
Referenced by completer::complete(), completer::completer(), completerRule(), operator<(), and operator=().
1.7.6.1