#include <language.h>
Inheritance diagram for node:
Public Member Functions | |
node () | |
constructors | |
node (const string &) | |
Methods for parse_tree nodes. | |
string | get_label (void) const |
get node label | |
word | get_word (void) const |
get node word | |
void | set_label (const string &) |
set node label | |
void | set_word (word &) |
set node word | |
bool | is_head (void) const |
find out whether node is a head | |
void | set_head (const bool) |
set whether node is a head | |
bool | is_chunk (void) const |
find out whether node is a chunk | |
void | set_chunk (const int) |
set position of the chunk in the sentence | |
int | get_chunk_ord (void) const |
get position of the chunk in the sentence | |
Protected Attributes | |
bool | head |
is the node the head of the rule? | |
int | chunk |
is the node the root of a chunk? which? | |
string | label |
node label | |
word * | w |
sentence word related to the node (if leaf) |
|
constructors
|
|
Methods for parse_tree nodes.
|
|
get position of the chunk in the sentence
|
|
get node label
|
|
get node word
|
|
find out whether node is a chunk
|
|
find out whether node is a head
|
|
set position of the chunk in the sentence
|
|
set whether node is a head
|
|
set node label
|
|
set node word
|
|
is the node the root of a chunk? which?
|
|
is the node the head of the rule?
|
|
node label
|
|
sentence word related to the node (if leaf)
|