Package nltk_lite :: Package contrib :: Package toolbox :: Module settings :: Class LexiconSettings
[hide private]
[frames] | no frames]

Class LexiconSettings

source code

                    object --+        
                             |        
corpora.toolbox.StandardFormat --+    
                                 |    
                   ToolboxSettings --+
                                     |
                                    LexiconSettings

This class is used to parse and manipulate settings file for lexicons.

Instance Methods [hide private]
 
__init__(self, file) source code
ElementTree._ElementInterface
parse(self, encoding=None)
Parse a settings file with lexicon metadata.
source code
 
get_record_marker(self) source code
 
get_marker_set(self) source code
 
__parse_boolean(self, mkr, name) source code
 
__parse_value(self, mkr, name) source code

Inherited from corpora.toolbox.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, file)
(Constructor)

source code 
Overrides: ToolboxSettings.__init__

parse(self, encoding=None)

source code 

Parse a settings file with lexicon metadata.

Returns: ElementTree._ElementInterface
contents of toolbox settings file with a nested structure
Overrides: ToolboxSettings.parse