FreeLing
4.0
|
Class rule implements a rule of a CG. More...
#include <constraint_grammar.h>
Public Member Functions | |
ruleCG () | |
Constructors of the subclass rule. | |
void | set_head (const std::wstring &) |
set rule head. | |
void | set_weight (double) |
set rule compatibility. | |
std::wstring | get_head () const |
get rule head. | |
double | get_weight () const |
set rule compatibility. | |
Protected Attributes | |
double | weight |
compatibility value | |
std::wstring | head |
Head of the rule. |
Class rule implements a rule of a CG.
Constructors of the subclass rule.
std::wstring freeling::ruleCG::get_head | ( | ) | const |
get rule head.
double freeling::ruleCG::get_weight | ( | ) | const |
set rule compatibility.
void freeling::ruleCG::set_head | ( | const std::wstring & | ) |
set rule head.
void freeling::ruleCG::set_weight | ( | double | ) |
set rule compatibility.
std::wstring freeling::ruleCG::head [protected] |
Head of the rule.
double freeling::ruleCG::weight [protected] |
compatibility value