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

type State

source code

object --+
         |
        CRFInfo.State

A description of a single CRF state.

Instance Methods [hide private]
 
__init__(self, name, initial_cost, final_cost, transitions) source code
 
toxml(self) source code
Static Methods [hide private]
 
_read(etree) source code
Class Variables [hide private]
  _XML_TEMPLATE = ' <state name="%(name)s" initialCost="%(ini...
Method Details [hide private]

__init__(self, name, initial_cost, final_cost, transitions)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_XML_TEMPLATE

Value:
'''    <state name="%(name)s" initialCost="%(initial_cost)s" finalCost\
="%(final_cost)s">
      <transitions>
%(transitions)s
      </transitions>
    </state>
'''