gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots
https://chatterbot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14.11k stars 4.44k forks source link

chatbot is not defined #2364

Closed Saravana-Pon-Balan closed 2 months ago

Saravana-Pon-Balan commented 7 months ago

IN quick start page

trainer = ListTrainer(chatbot)

in this line chatbot is not defined

Saravana-Pon-Balan commented 7 months ago

chatbot is not defined

frozenproof commented 6 months ago

did you install the chatbot package ?

gunthercox commented 2 months ago

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')