FreeLing  3.0
Public Member Functions | Public Attributes
completerRule Class Reference

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

#include <dep_rules.h>

Collaboration diagram for 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

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

Detailed Description

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


Constructor & Destructor Documentation

constructors

Constructor.

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

Member Function Documentation

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)

Member Data Documentation

std::wstring completerRule::context

context (if any) required to apply the rule

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

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::list<std::wstring> completerRule::rightConds
boost::u32regex completerRule::rightRE

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