Chatterbot: i'm getting this issue please help!

Created on 21 Apr 2019  路  3Comments  路  Source: gunthercox/ChatterBot

[nltk_data] Downloading package stopwords to C:UsersXXXX
[nltk_data] XXXAppDataRoamingnltk_data...
[nltk_data] Package stopwords is already up-to-date!
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] C:UsersXXXXXXXXAppDataRoamingnltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date!
Traceback (most recent call last):
File "C:UsersXXXXXXXXXmyprojectchatbotprochatbot.py", line 8, in
bot.set_trainer(ListTrainer)
AttributeError: 'ChatBot' object has no attribute 'set_trainer'

Most helpful comment

馃憜馃憜that's correct @orfeous

All 3 comments

set_trainer is obsolete, and has been removed. see below how to use the trainer.

trainer = ListTrainer(bot)
trainer.train()

馃憜馃憜that's correct @orfeous

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings