Package nltk_lite :: Package contrib :: Package mit :: Package six863 :: Package kimmo :: Module kimmo :: Class TextTrace
[hide private]
[frames] | no frames]

Class TextTrace

source code

object --+
         |
        TextTrace

Supply a TextTrace object as the 'log' argument to KimmoRuleSet.generate or KimmoRuleSet.recognize, and it will output the steps it goes through on a text terminal.

Instance Methods [hide private]
 
__init__(self, verbosity=1)
Creates a TextTrace.
source code
 
reset(self) source code
 
step(self, pairs, curr, rules, prev_states, states, morphology_state, word) source code
 
succeed(self, pairs) 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, verbosity=1)
(Constructor)

source code 

Creates a TextTrace. The 'verbosity' argument ranges from 1 to 3, and specifies how much text will be output to the screen.

Overrides: object.__init__