Skip to content

error = english_bot.set_trainer(ChatterBotCorpusTrainer) AttributeError: 'ChatBot' object has no attribute 'set_trainer' #22

@aspiringguru

Description

@aspiringguru

I'm seeing this problem as below.
no changes from the git repo, git clone, then pip install -r requirements.txt

it looks like a problem within the chatterbot git repo, which is weird.

reported similar problem on the chatterbot git repo yesterday, hoping someone might spot what is going on or replicate my problem.

my current platform: windows 10, have also seen this problem on ubuntu 16.04

checking the package versions
pip freeze | grep atter
ChatterBot==1.0.2
chatterbot-corpus==1.2.0

python app.py
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] C:\Users\Matthew\AppData\Roaming\nltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date!
[nltk_data] Downloading package punkt to
[nltk_data] C:\Users\Matthew\AppData\Roaming\nltk_data...
[nltk_data] Package punkt is already up-to-date!
[nltk_data] Downloading package stopwords to
[nltk_data] C:\Users\Matthew\AppData\Roaming\nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Traceback (most recent call last):
File "app.py", line 9, in
english_bot.set_trainer(ChatterBotCorpusTrainer)
AttributeError: 'ChatBot' object has no attribute 'set_trainer'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions