Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

node Class Reference

Class node stores nodes of a parse_tree Each node in the tree is either a label (intermediate node) or a word (leaf node). More...

#include <language.h>

Inheritance diagram for node:

Inheritance graph
[legend]
Collaboration diagram for node:

Collaboration graph
[legend]
List of all members.

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
wordw
 sentence word related to the node (if leaf)

Detailed Description

Class node stores nodes of a parse_tree Each node in the tree is either a label (intermediate node) or a word (leaf node).


Constructor & Destructor Documentation

node::node  ) 
 

constructors

node::node const string &   ) 
 

Methods for parse_tree nodes.


Member Function Documentation

int node::get_chunk_ord void   )  const
 

get position of the chunk in the sentence

string node::get_label void   )  const
 

get node label

word node::get_word void   )  const
 

get node word

bool node::is_chunk void   )  const
 

find out whether node is a chunk

bool node::is_head void   )  const
 

find out whether node is a head

void node::set_chunk const   int  ) 
 

set position of the chunk in the sentence

void node::set_head const   bool  ) 
 

set whether node is a head

void node::set_label const string &   ) 
 

set node label

void node::set_word word  ) 
 

set node word


Member Data Documentation

int node::chunk [protected]
 

is the node the root of a chunk? which?

bool node::head [protected]
 

is the node the head of the rule?

string node::label [protected]
 

node label

word* node::w [protected]
 

sentence word related to the node (if leaf)


The documentation for this class was generated from the following files:
Generated on Wed Apr 26 12:58:25 2006 for FreeLing by  doxygen 1.4.4