Package peppy :: Package nltk_lite :: Package chat :: Package nltk_lite :: Module chat
[frames] | no frames]

Module chat

A class for simple chatbots. These perform simple pattern matching on sentences typed by users, and respond with automatically generated sentences.

These chatbots may not work using the windows command line or the windows IDLE GUI.

Classes
  Chat
Functions
 
converse(bot, quit='quit')
Variables
  reflections = {'am': 'are', 'are': 'am', 'i': 'you', 'i\'d': '...
Variables Details

reflections

Value:
{'am': 'are',
 'are': 'am',
 'i': 'you',
 'i\'d': 'you would',
 'i\'ll': 'you will',
 'i\'ve': 'you have',
 'me': 'you',
 'my': 'your',
...