Package nltk :: Package tag :: Module hmm :: Class IdentityTransform
[hide private]
[frames] | no frames]

Class IdentityTransform

source code

                           object --+        
                                    |        
api.HiddenMarkovModelTaggerTransformI --+    
                                        |    
         HiddenMarkovModelTaggerTransform --+
                                            |
                                           IdentityTransform

A subclass of HiddenMarkovModelTaggerTransform that implements transform() as the identity function, i.e. symbols passed to transform() are returned unmodified.

Instance Methods [hide private]
list
transform(self, labeled_symbols)
Returns: a list of transformed symbols
source code

Inherited from HiddenMarkovModelTaggerTransform: __init__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

transform(self, labeled_symbols)

source code 
Parameters:
  • labeled_symbols - a list of labeled untransformed symbols, i.e. symbols that are not (token, tag) or (word, tag)
Returns: list
a list of transformed symbols
Overrides: api.HiddenMarkovModelTaggerTransformI.transform
(inherited documentation)