Package nltk :: Package tag :: Module crf :: Class CRFInfo :: Class Transition
[hide private]
[frames] | no frames]

Class Transition

source code

object --+
         |
        CRFInfo.Transition

A description of a single CRF transition.

Instance Methods [hide private]
 
__init__(self, destination, label, weightgroups)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
toxml(self) source code

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

Static Methods [hide private]
 
_read(etree) source code
Class Variables [hide private]
  _XML_TEMPLATE = ' <transition label="%(label)s" destina...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, destination, label, weightgroups)
(Constructor)

source code 

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

Parameters:
  • destination - The name of the state that this transition connects to.
  • label - The tag that is generated when traversing this transition.
  • weightgroups - A list of WeightGroup names, indicating which weight groups should be used to calculate the cost of traversing this transition.
Overrides: object.__init__

Class Variable Details [hide private]

_XML_TEMPLATE

Value:
'        <transition label="%(label)s" destination="%(destination)s" w\
eightGroups="%(w_groups)s"/>'