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

Module kimmo

source code

Kimmo Morphological Analyzer. Supports proper recognizer completion, generator ordering, kimmo control class, loader for own file format, also .rul compatible with old pckimmo.

Classes [hide private]
  KimmoGUI
  PrintHook
  tkImageView
  ListDialog
  KimmoControl
  KimmoPair
Input/Output character pair
  KimmoSubset
  KimmoDefaults
  KimmoRule
  KimmoArrowRule
Two level rule
  KimmoFSARule
  KimmoWord
  KimmoLexicon
  KimmoAlternation
  KimmoMorphology
  KimmoRuleSet
Functions [hide private]
 
dotformat(nodeEdgeAry) source code
bool
_classeq(instance1, instance2)
Returns: true iff the given objects are instances of the same class.
source code
 
dot2image(filename, dotstring) source code
 
parse_pair_sequence(description, token_type)
Read the description, which should be in form [X|X:Y]+, and return a list of pairs
source code
 
_generate_test(s, input) source code
 
_recognize_test(s, input, morphology=None) source code
 
read_kimmo_file(filename, gui=None) source code
Variables [hide private]
  _kimmo_terminal_regexp = '[a-zA-Z0-9\\+\'\\-\\#\\@\\$\\%\\!\\^...
  _kimmo_terminal_regexp_fsa = '[^:\\s]+'
  _kimmo_terminal_regexp_ext = '~?[a-zA-Z0-9\\+\'\\-\\#\\@\\$\\%...
  _kimmo_defaults = '[a-zA-Z0-9\\+\'\\-\\#\\@\\$\\%\\!\\^\\`\\}\...
  _kimmo_defaults_fsa = '[^:\\s]+|\\:'
  _kimmo_rule = '~?[a-zA-Z0-9\\+\'\\-\\#\\@\\$\\%\\!\\^\\`\\}\\{...
  _arrows = ['==>', '<=>', '<==', '/<=']
  _special_tokens = ['(', ')', '[', ']', '*', '&', '_', ':', '==...
  _non_list_initial_special_tokens = [')', ']', '*', '&', '_', '...
Function Details [hide private]

_classeq(instance1, instance2)

source code 
Returns: bool
true iff the given objects are instances of the same class.

Variables Details [hide private]

_kimmo_terminal_regexp

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

_kimmo_terminal_regexp_ext

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

_kimmo_defaults

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

_kimmo_rule

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

_special_tokens

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

_non_list_initial_special_tokens

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