Package nltk :: Package corpus :: Package reader :: Module toolbox :: Class ToolboxSettings
[hide private]
[frames] | no frames]

Class ToolboxSettings

source code

    object --+    
             |    
StandardFormat --+
                 |
                ToolboxSettings

This class is the base class for settings files.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
ElementTree._ElementInterface
parse(self, encoding=None, errors='strict', **kwargs)
Parses a settings file using ElementTree.
source code

Inherited from StandardFormat: close, fields, open, open_string, raw_fields

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: StandardFormat.__init__

parse(self, encoding=None, errors='strict', **kwargs)

source code 

Parses a settings file using ElementTree.

Parameters:
  • encoding (string) - encoding used by settings file
  • errors (string) - Error handling scheme for codec. Same as .decode inbuilt method.
  • kwargs (keyword arguments dictionary) - Keyword arguments passed to StandardFormat.fields()
Returns: ElementTree._ElementInterface
contents of toolbox settings file with a nested structure