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

Module nltk_lite.contrib.kimmo

Kimmo Morphological Analyzer. Supports proper recognizer completion, generator ordering, kimmo control class, loader for own file format, also .rul compatible with old pckimmo.
Classes
KimmoAlternation  
KimmoArrowRule Two level rule
KimmoControl  
KimmoDefaults  
KimmoFSARule  
KimmoGUI  
KimmoLexicon  
KimmoMorphology  
KimmoPair Input/Output character pair
KimmoRule  
KimmoRuleSet  
KimmoSubset  
KimmoWord  
ListDialog  
PrintHook  
tkImageView  

Function Summary
  dot2image(filename, dotstring)
  dotformat(nodeEdgeAry)
  parse_pair_sequence(description, token_type)
Read the description, which should be in form [X|X:Y]+, and return a list of pairs
  read_kimmo_file(filename, gui)
bool _classeq(instance1, instance2)
Return true iff the given objects are instances of the same class.
  _generate_test(s, input)
  _recognize_test(s, input, morphology)

Variable Summary
list _arrows = ['==>', '<=>', '<==', '/<=']
str _kimmo_defaults = "[a-zA-Z0-9\\+'\\-\\#\\@\\$\\%\\!\\^\\...
str _kimmo_defaults_fsa = '[^:\\s]+|\\:'
str _kimmo_rule = "~?[a-zA-Z0-9\\+'\\-\\#\\@\\$\\%\\!\\^\\`\...
str _kimmo_terminal_regexp_ext = "~?[a-zA-Z0-9\\+'\\-\\#\\@\...
list _non_list_initial_special_tokens = [')', ']', '*', '&', ...
list _special_tokens = ['(', ')', '[', ']', '*', '&', '_', ':...

Function Details

parse_pair_sequence(description, token_type)

Read the description, which should be in form [X|X:Y]+, and return a list of pairs

_classeq(instance1, instance2)

Returns:
true iff the given objects are instances of the same class.
           (type=bool)

Variable Details

_arrows

Type:
list
Value:
['==>', '<=>', '<==', '/<=']                                           

_kimmo_defaults

Type:
str
Value:
"[a-zA-Z0-9\\+'\\-\\#\\@\\$\\%\\!\\^\\`\\}\\{]+|\\:"                   

_kimmo_defaults_fsa

Type:
str
Value:
'[^:\\s]+|\\:'                                                         

_kimmo_rule

Type:
str
Value:
"~?[a-zA-Z0-9\\+'\\-\\#\\@\\$\\%\\!\\^\\`\\}\\{]+|[\\:\\(\\)\\[\\]\\?\\
\&\\*\\_]|<=>|==>|<==|/<="                                             

_kimmo_terminal_regexp_ext

Type:
str
Value:
"~?[a-zA-Z0-9\\+'\\-\\#\\@\\$\\%\\!\\^\\`\\}\\{]+"                     

_non_list_initial_special_tokens

Type:
list
Value:
[')', ']', '*', '&', '_', ':', '==>', '<=>', '<==', '/<=']             

_special_tokens

Type:
list
Value:
['(', ')', '[', ']', '*', '&', '_', ':', '==>', '<=>', '<==', '/<=']   

Generated by Epydoc 2.1 on Tue Sep 5 09:37:22 2006 http://epydoc.sf.net