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

Class Cterminal

source code

This class encapsulates a terminal object

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
string
get_id(self)
Returns the identifier of the object
source code
xml Element
get_node(self)
Returns the node of the element
source code
Cspan
get_span(self)
Returns the term span of the object
source code
 
set_id(self, this_id)
Sets the identifier for the element
source code
 
set_span(self, this_span)
Sets the span for the terminal
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

get_id(self)

source code 

Returns the identifier of the object

Returns: string
identifier of the terminal object

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_span(self)

source code 

Returns the term span of the object

Returns: Cspan
the span object

set_id(self, this_id)

source code 

Sets the identifier for the element

Parameters:
  • this_id (string) - identifier

set_span(self, this_span)

source code 

Sets the span for the terminal

Parameters:
  • this_span (Cspan) - span