Hello While running your code I am getting this error
AttributeError: 'ChatBot' object has no attribute 'set_trainer'
from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer from chatterbot.trainers import ListTrainer
bot = ChatBot("Candice") bot.set_trainer(ListTrainer) bot.set_trainer(ChatterBotCorpusTrainer) bot.train("chatterbot.corpus.english")
Try this and if you still get the same error. You can contact me via mail: sahil.rajput.0196@gmail.com
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello
While running your code I am getting this error
AttributeError: 'ChatBot' object has no attribute 'set_trainer'
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
bot = ChatBot("Candice")
bot.set_trainer(ListTrainer)
bot.set_trainer(ChatterBotCorpusTrainer)
bot.train("chatterbot.corpus.english")
Try this and if you still get the same error. You can contact me via mail: sahil.rajput.0196@gmail.com