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

Class Default

source code

     object --+            
              |            
yaml.YAMLObject --+        
                  |        
               TagI --+    
                      |    
      SequentialBackoff --+
                          |
                         Default
Known Subclasses:
contrib.marshal.MarshalDefault

A tagger that assigns the same tag to every token.

Nested Classes [hide private]

Inherited from yaml.YAMLObject: __metaclass__, yaml_dumper, yaml_loader

Instance Methods [hide private]
 
__init__(self, tag)
Construct a new default tagger.
source code
 
__repr__(self)
repr(x)
source code
 
tag_one(self, token, history=None) source code

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]
  yaml_tag = '!tag.Default'

Inherited from yaml.YAMLObject: yaml_flow_style

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tag)
(Constructor)

source code 

Construct a new default tagger.

Parameters:
  • tag (string) - The tag that should be assigned to every token.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)