ó <¿CVc@s¶dZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZed fed fe d fe d fed fgZd„ZdS(së 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. iÿÿÿÿ(tprint_function(tChat(t eliza_chat(t iesha_chat(t rude_chat(t suntsu_chat(tzen_chatsEliza (psycho-babble)sIesha (teen anime junky)sRude (abusive bot)sSuntsu (Chinese sayings)sZen (gems of wisdom)cCsèddl}tdƒttƒ}x4t|ƒD]&}td|dt|dfƒq/WxitrÄtd|ddƒ|jjƒjƒ}|j ƒr·t |ƒdt|ƒkr·Pq\tdƒq\Wtt |ƒdd }|ƒdS( Niÿÿÿÿs(Which chatbot would you like to talk to?s %d: %sis# Enter a number in the range 1-%d: tendt s Error: bad chatbot numberi( tsystprinttlentbotstrangetTruetstdintreadlinetstriptisdigittint(R tbotcounttitchoicetchatbot((sd/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/chat/__init__.pytchatbots"s   $ (N(t__doc__t __future__Rtnltk.chat.utilRtnltk.chat.elizaRtnltk.chat.ieshaRtnltk.chat.rudeRtnltk.chat.suntsuRt nltk.chat.zenRR R(((sd/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/chat/__init__.pyts