Package dataprocessor :: Package input :: Module orangeprocessor :: Class AttributesReader
[hide private]
[frames] | no frames]

Class AttributesReader

source code

Instance Methods [hide private]
 
__init__(self, file, class_name, meta_attributes, desired_attributes=[]) source code
 
startElement(self, name, attrs=[])
Signals the start of an element (simplesentence or parallelsentence)
source code
 
endDocument(self) source code
Method Details [hide private]

__init__(self, file, class_name, meta_attributes, desired_attributes=[])
(Constructor)

source code 
Parameters:
  • out (file) - file object to receive processed changes
  • feature_generators (list) - list of feature generators to be applied

startElement(self, name, attrs=[])

source code 

Signals the start of an element (simplesentence or parallelsentence)

Parameters:
  • name (str) - the name of the element
  • attrs (Attributes) - of the element type as a string and the attrs parameter holds an object of the Attributes interface containing the attributes of the element.