Module header_data :: Class Clp
[hide private]
[frames] | no frames]

Class Clp

source code

This class encapsulates the linguistic processor element in the header

Instance Methods [hide private]
 
__init__(self, node=None, name='', version='', timestamp=None, btimestamp=None, etimestamp=None)
Constructor of the object
source code
xml Element
get_node(self)
Returns the node of the element
source code
 
set_beginTimestamp(self, btimestamp=None)
Set the begin timestamp of the linguistic processor, set to None for the current time
source code
 
set_endTimestamp(self, etimestamp=None)
Set the end timestamp of the linguistic processor, set to None for the current time
source code
 
set_name(self, name)
Set the name of the linguistic processor
source code
 
set_timestamp(self, timestamp=None)
Set the timestamp of the linguistic processor, set to None for the current time
source code
 
set_version(self, version)
Set the version of the linguistic processor
source code
Method Details [hide private]

__init__(self, node=None, name='', version='', timestamp=None, btimestamp=None, etimestamp=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create an empty one)) - this is the node of the element. If it is None it will create a new object
  • name (string) - the name of the linguistic processor
  • version (string) - the version of the linguistic processor
  • timestamp (string) - the timestamp, or None to set it to the current time
  • btimestamp - the begin timestamp, or None to set it to the current time (NOTE: only use None if header created at begining of process!)
  • etimestamp - the end timestamp, or None to set it (NOTE: only use None if header created at the end of the process!)

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

set_beginTimestamp(self, btimestamp=None)

source code 

Set the begin timestamp of the linguistic processor, set to None for the current time

Parameters:
  • btimestamp (string) - version of the linguistic processor

set_endTimestamp(self, etimestamp=None)

source code 

Set the end timestamp of the linguistic processor, set to None for the current time

Parameters:
  • etimestamp (string) - version of the linguistic processor

set_name(self, name)

source code 

Set the name of the linguistic processor

Parameters:
  • name (string) - name of the linguistic processor

set_timestamp(self, timestamp=None)

source code 

Set the timestamp of the linguistic processor, set to None for the current time

Parameters:
  • timestamp (string) - version of the linguistic processor

set_version(self, version)

source code 

Set the version of the linguistic processor

Parameters:
  • version (string) - version of the linguistic processor