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

Class 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)
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 = ' <state name="%(name)s" initialCost="%(ini...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

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

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>
'''