FreeLing  3.1
Public Member Functions | Public Attributes
freeling::completerRule Class Reference

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

#include <dep_rules.h>

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

List of all members.

Public Member Functions

 completerRule ()
 constructors
 completerRule (const std::wstring &, const std::wstring &, const std::wstring &)
 completerRule (const completerRule &)
 Constructor.
completerRuleoperator= (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_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 completerRule stores rules used by the completer of parse trees.


Constructor & Destructor Documentation

constructors

Constructor.

References weight.

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

Member Function Documentation

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)

Member Data Documentation

flags that enable the rule to be applied

Referenced by freeling::completer::completer(), completerRule(), freeling::completer::enabled_rule(), and operator=().

flags to toggle off after applying the rule

Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), and operator=().

flags to toggle on after applying the rule

Referenced by freeling::completer::applyRule(), freeling::completer::completer(), completerRule(), and operator=().

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=().

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=().


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