FreeLing
4.0
|
The class completer_rule stores rules used by the completer of parse trees. More...
#include <dep_rules.h>
Public Member Functions | |
completer_rule () | |
constructors | |
completer_rule (const std::wstring &, const std::wstring &, const std::wstring &) | |
completer_rule (const completer_rule &) | |
completer_rule & | operator= (const completer_rule &) |
assignment | |
int | operator< (const completer_rule &a) const |
Comparison. The more weight the higher priority. | |
Public Attributes | |
std::wstring | 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 | pairClass |
pair class to check for additional semantic compatibility | |
std::wstring | node1 |
properties of each chunk to check in pair file | |
std::wstring | attr1 |
std::wstring | node2 |
std::wstring | attr2 |
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 completer_rule stores rules used by the completer of parse trees.
constructors
freeling::completer_rule::completer_rule | ( | const std::wstring & | , |
const std::wstring & | , | ||
const std::wstring & | |||
) |
int freeling::completer_rule::operator< | ( | const completer_rule & | a | ) | const |
Comparison. The more weight the higher priority.
completer_rule& freeling::completer_rule::operator= | ( | const completer_rule & | ) |
assignment
std::wstring freeling::completer_rule::attr1 |
std::wstring freeling::completer_rule::attr2 |
whether the context is negated
std::set<std::wstring> freeling::completer_rule::enabling_flags |
flags that enable the rule to be applied
std::set<std::wstring> freeling::completer_rule::flags_toggle_off |
flags to toggle off after applying the rule
std::set<std::wstring> freeling::completer_rule::flags_toggle_on |
flags to toggle on after applying the rule
std::wstring freeling::completer_rule::leftChk |
chunk labels to which the rule is applied
extra conditions on the chunks (pos, lemma, form, class)
std::vector<matching_condition> freeling::completer_rule::leftContext |
context (if any) required to apply the rule
std::wstring freeling::completer_rule::line |
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
condition for MATCHING operation.
std::wstring freeling::completer_rule::newNode1 |
new label/s (if any) for the nodes after the operation.
std::wstring freeling::completer_rule::newNode2 |
std::wstring freeling::completer_rule::node1 |
properties of each chunk to check in pair file
std::wstring freeling::completer_rule::node2 |
std::wstring freeling::completer_rule::operation |
operation to perform
std::wstring freeling::completer_rule::pairClass |
pair class to check for additional semantic compatibility
std::wstring freeling::completer_rule::rightChk |
std::vector<matching_condition> freeling::completer_rule::rightContext |
priority of the rule