Package nltk :: Package chat :: Module suntsu
[hide private]
[frames] | no frames]

Module suntsu

source code

Functions [hide private]
 
suntsu_chat() source code
 
demo() source code
Variables [hide private]
  pairs = (('quit', ('Good-bye.', 'Plan well', 'May victory be y...
  suntsu_chatbot = Chat(pairs, reflections)
Variables Details [hide private]

pairs

Value:
(('quit', ('Good-bye.', 'Plan well', 'May victory be your future')),
 ('[^\\?]*\\?',
  ('Please consider whether you can answer your own question.',
   'Ask me no questions!')),
 ('[0-9]+(.*)',
  ('It is the rule in war, if our forces are ten to the enemy\'s one, \
to surround him; if five to one, to attack him; if twice as numerous, \
to divide our army into two.',
...