Package nltk_lite :: Package tag :: Module ngram :: Class Trigram
[hide private]
[frames] | no frames]

Class Trigram

source code

     object --+                
              |                
yaml.YAMLObject --+            
                  |            
               TagI --+        
                      |        
      SequentialBackoff --+    
                          |    
                      Ngram --+
                              |
                             Trigram

Nested Classes [hide private]

Inherited from yaml.YAMLObject: __metaclass__, yaml_dumper, yaml_loader

Instance Methods [hide private]
 
__init__(self, cutoff=1, backoff=None)
Construct an n-gram stochastic tagger.
source code

Inherited from Ngram: __repr__, size, tag_one, train

Inherited from SequentialBackoff: tag, tag_sents

Inherited from SequentialBackoff (private): _backoff_tag_one

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

Class Methods [hide private]

Inherited from yaml.YAMLObject: from_yaml, to_yaml

Class Variables [hide private]

Inherited from yaml.YAMLObject: yaml_flow_style, yaml_tag

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cutoff=1, backoff=None)
(Constructor)

source code 

Construct an n-gram stochastic tagger. The tagger must be trained using the train() method before being used to tag data.

Overrides: Ngram.__init__
(inherited documentation)