ChatterBot
ChatterBot copied to clipboard
chatbot is not defined
IN quick start page
trainer = ListTrainer(chatbot)
in this line chatbot is not defined
chatbot is not defined
did you install the chatbot package ?
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')