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

type Transition

source code

object --+

A description of a single CRF transition.

Instance Methods [hide private]
__init__(self, destination, label, weightgroups) source code
toxml(self) source code
Static Methods [hide private]
_read(etree) source code
Class Variables [hide private]
  _XML_TEMPLATE = ' <transition label="%(label)s" destina...
Method Details [hide private]

__init__(self, destination, label, weightgroups)

source code 
  • 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]


'        <transition label="%(label)s" destination="%(destination)s" w\