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

type ToolboxSettings

source code

    object --+    
             |    
StandardFormat --+
                 |
                ToolboxSettings

This class is the base class for settings files.

Instance Methods [hide private]
 
__init__(self) 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

Method Details [hide private]

__init__(self)
(Constructor)

source code 
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