FreeLing  4.0
Public Member Functions | Public Attributes
freeling::completer_rule Class Reference

The class completer_rule stores rules used by the completer of parse trees. More...

#include <dep_rules.h>

Collaboration diagram for freeling::completer_rule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 completer_rule ()
 constructors
 completer_rule (const std::wstring &, const std::wstring &, const std::wstring &)
 completer_rule (const completer_rule &)
completer_ruleoperator= (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_conditionleftContext
 context (if any) required to apply the rule
std::vector< matching_conditionrightContext
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

Detailed Description

The class completer_rule stores rules used by the completer of parse trees.


Constructor & Destructor Documentation

constructors

freeling::completer_rule::completer_rule ( const std::wstring &  ,
const std::wstring &  ,
const std::wstring &   
)

Member Function Documentation

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


Member Data Documentation

whether the context is negated

flags that enable the rule to be applied

flags to toggle off after applying the rule

flags to toggle on after applying the rule

chunk labels to which the rule is applied

extra conditions on the chunks (pos, lemma, form, class)

context (if any) required to apply the rule

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.

new label/s (if any) for the nodes after the operation.

properties of each chunk to check in pair file

operation to perform

pair class to check for additional semantic compatibility

priority of the rule


The documentation for this class was generated from the following file: