Package nltk :: Package tag :: Module api :: Class HiddenMarkovModelTaggerTransformI
[hide private]
[frames] | no frames]

Class HiddenMarkovModelTaggerTransformI

source code

object --+
         |
        HiddenMarkovModelTaggerTransformI
Known Subclasses:

An interface for a transformation to be used as the transform parameter of HiddenMarkovModelTagger.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
list
transform(self, labeled_symbols)
Returns: a list of transformed symbols
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

transform(self, labeled_symbols)

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