|
FreeLing
3.1
|
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 | |
| int | line |
| line in the file where rule was, useful to trace and issue errors. | |
| std::wstring | leftChk |
| chunk labels to which the rule is applied | |
| std::wstring | rightChk |
| matching_condition | leftConds |
| extra conditions on the chunks (pos, lemma, form, class) | |
| matching_condition | rightConds |
| std::wstring | newNode1 |
| new label/s (if any) for the nodes after the operation. | |
| std::wstring | newNode2 |
| matching_condition | matchingCond |
| condition for MATCHING operation. | |
| std::wstring | operation |
| operation to perform | |
| std::vector< matching_condition > | leftContext |
| context (if any) required to apply the rule | |
| std::vector< matching_condition > | rightContext |
| bool | context_neg |
| whether the context is negated | |
| int | weight |
| priority of the rule | |
| 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 | |
The class completerRule stores rules used by the completer of parse trees.
| freeling::completerRule::completerRule | ( | const std::wstring & | , |
| const std::wstring & | , | ||
| const std::wstring & | |||
| ) |
| freeling::completerRule::completerRule | ( | const completerRule & | cr | ) |
Constructor.
References context_neg, enabling_flags, flags_toggle_off, flags_toggle_on, leftChk, leftConds, leftContext, line, matchingCond, newNode1, newNode2, operation, rightChk, rightConds, rightContext, and weight.
| int freeling::completerRule::operator< | ( | const completerRule & | a | ) | const |
Comparison. The more weight the higher priority.
Comparison.
The smaller weight, the higher priority
References weight.
| completerRule & freeling::completerRule::operator= | ( | const completerRule & | cr | ) |
assignment
Assignment.
References context_neg, enabling_flags, flags_toggle_off, flags_toggle_on, leftChk, leftConds, leftContext, line, matchingCond, newNode1, newNode2, operation, rightChk, rightConds, rightContext, and weight.
whether the context is negated
Referenced by freeling::completer::completer(), completerRule(), freeling::completer::matching_context(), and operator=().
| std::set<std::wstring> freeling::completerRule::enabling_flags |
flags that enable the rule to be applied
Referenced by freeling::completer::completer(), completerRule(), freeling::completer::enabled_rule(), and operator=().
| std::set<std::wstring> freeling::completerRule::flags_toggle_off |
flags to toggle off after applying the rule
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), and operator=().
| std::set<std::wstring> freeling::completerRule::flags_toggle_on |
flags to toggle on after applying the rule
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), and operator=().
| std::wstring freeling::completerRule::leftChk |
chunk labels to which the rule is applied
Referenced by freeling::completer::completer(), completerRule(), and operator=().
extra conditions on the chunks (pos, lemma, form, class)
Referenced by freeling::completer::completer(), completerRule(), and operator=().
| std::vector<matching_condition> freeling::completerRule::leftContext |
context (if any) required to apply the rule
Referenced by freeling::completer::completer(), completerRule(), freeling::completer::matching_context(), and operator=().
line in the file where rule was, useful to trace and issue errors.
Used also as rule id when storing last_left/right matches in status
Referenced by freeling::completer::applyRule(), freeling::completer::complete(), freeling::completer::completer(), completerRule(), freeling::completer::matching_operation(), and operator=().
condition for MATCHING operation.
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), freeling::completer::matching_operation(), and operator=().
| std::wstring freeling::completerRule::newNode1 |
new label/s (if any) for the nodes after the operation.
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), freeling::completer::matching_operation(), and operator=().
| std::wstring freeling::completerRule::newNode2 |
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), and operator=().
| std::wstring freeling::completerRule::operation |
operation to perform
Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), freeling::completer::matching_operation(), and operator=().
| std::wstring freeling::completerRule::rightChk |
Referenced by freeling::completer::completer(), completerRule(), and operator=().
Referenced by freeling::completer::completer(), completerRule(), and operator=().
| std::vector<matching_condition> freeling::completerRule::rightContext |
Referenced by freeling::completer::completer(), completerRule(), freeling::completer::matching_context(), and operator=().
priority of the rule
Referenced by freeling::completer::complete(), freeling::completer::completer(), completerRule(), operator<(), and operator=().
1.7.6.1