ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

chatbot is not defined

Open Saravana-Pon-Balan opened this issue 1 year ago • 2 comments

IN quick start page

trainer = ListTrainer(chatbot)

in this line chatbot is not defined

Saravana-Pon-Balan avatar Apr 18 '24 12:04 Saravana-Pon-Balan

chatbot is not defined

Saravana-Pon-Balan avatar Apr 18 '24 12:04 Saravana-Pon-Balan

did you install the chatbot package ?

frozenproof avatar May 01 '24 19:05 frozenproof

If you're seeing an error like this please start with the steps at the beginning of the quick-start guide. Specifically, you'll want to define a chatbot variable, otherwise you will absolutely see an error from Python telling you that it is not defined.

Here is a very basic example:

from chatterbot import ChatBot
chatbot = ChatBot('My Chat Bot')

gunthercox avatar Aug 25 '24 16:08 gunthercox