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

Type MarshalNgram

   object --+            
            |            
         TagI --+        
                |        
SequentialBackoff --+    
                    |    
                Ngram --+
                        |
                       MarshalNgram


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 Ngram: __init__, __repr__, size, tag_one, train
Inherited from SequentialBackoff: tag, tag_sents
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

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)

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