Module constituency_data :: Class Cconstituency
[hide private]
[frames] | no frames]

Class Cconstituency

source code

This class encapsulates the constituency layer

Instance Methods [hide private]
 
__get_tree_nodes(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
 
add_tree(self, this_tree)
Adds a tree to the constituency layer
source code
xml Element
get_node(self)
Returns the node of the element
source code
Ctree
get_trees(self)
Iterator that returns all the tree objects
source code
 
to_kaf(self) source code
 
to_naf(self) source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create and empty one)) - this is the node of the element. If it is None it will create a new object

add_tree(self, this_tree)

source code 

Adds a tree to the constituency layer

Parameters:
  • this_tree (Ctree) - the constituency tree

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_trees(self)

source code 

Iterator that returns all the tree objects

Returns: Ctree
tree objects (iterator)