Package nltk_lite :: Package contrib :: Module marshal :: Class MarshalDefault
[show private | hide private]
[frames | no frames]

Type MarshalDefault

   object --+            
            |            
         TagI --+        
                |        
SequentialBackoff --+    
                    |    
              Default --+
                        |
                       MarshalDefault


Method Summary
  marshal(self, filename)
Marshals (saves to a plain text file) the tagger model.
  unmarshal(self, filename)
Unmarshals (loads from a plain text file) the tagger model.
Inherited from Default: __init__, __repr__, tag_one
Inherited from SequentialBackoff: tag, tag_sents, _backoff_tag_one
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variable Summary
str _classname = 'DefaultTagger'

Method Details

marshal(self, filename)

Marshals (saves to a plain text file) the tagger model.
Parameters:
filename - Name of the file to which save the model (will be overwritten if it already exists).
           (type=string)

unmarshal(self, filename)

Unmarshals (loads from a plain text file) the tagger model. For safety, this operation is intended to be performed only on newly created taggers (i.e., without any previous model).
Parameters:
filename - Name of the file from which the model will be read.
           (type=string)

Class Variable Details

_classname

Type:
str
Value:
'DefaultTagger'                                                        

Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 http://epydoc.sf.net