Package nltk_lite :: Package tag :: Class SequentialBackoff
[hide private]
[frames] | no frames]

Class SequentialBackoff

source code

     object --+        
              |        
yaml.YAMLObject --+    
                  |    
               TagI --+
                      |
                     SequentialBackoff
Known Subclasses:
unigram.Affix, Default, ngram.Ngram, unigram.Unigram, contrib.combined.CombinedTagger, unigram.Lookup, unigram.Regexp

A tagger that tags words sequentially, left to right.

Nested Classes [hide private]

Inherited from yaml.YAMLObject: __metaclass__, yaml_dumper, yaml_loader

Instance Methods [hide private]
 
_backoff_tag_one(self, token, history=None) source code
 
tag(self, tokens, verbose=True)
Assign a tag to each token in tokens, and yield a tagged token of the form (token, tag)
source code
 
tag_sents(self, sents, verbose=True) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __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]

tag(self, tokens, verbose=True)

source code 

Assign a tag to each token in tokens, and yield a tagged token of the form (token, tag)

Overrides: TagI.tag
(inherited documentation)