Package nltk_lite :: Package contrib :: Module kimmo :: Class KimmoControl
[hide private]
[frames] | no frames]

Class KimmoControl

source code

Instance Methods [hide private]
 
__init__(self, lexicon_string, rule_string, lexicon_file, rule_file, debug) source code
 
generate(self, word) source code
 
recognize(self, word) source code
 
batch(self, filename) source code
 
processLexicon(self, text)
Takes the currently typed in lexicon and turns them from text into the kimmo lexicon array.
source code
 
processAlternations(self, text)
Takes the currently typed in alternations and turns them from text into the kimmo alternation array.
source code
 
processRules(self, text)
Takes the currently typed in rules and processes them into the python kimmo format.
source code
Method Details [hide private]

processRules(self, text)

source code 

Takes the currently typed in rules and processes them into the python kimmo format. expects rules to be in c version of .rul file format. needs to be file compatible.