Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't install several dependencies by default #2027

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Don't install several dependencies by default #2027

merged 1 commit into from
Aug 20, 2020

Conversation

gunthercox
Copy link
Owner

Right now the issue tracker is prolific with tickets that have titles similar to "Help, I had an error while installing ChatterBot". The intention of this pull request is to make changes that eliminate a number of dependencies that could be considered optional from the primary installation process. Although I think spacy and chatterbot_corpus are the primary culprits; spacy requiring build dependencies to compile, and chatterbot_coupus currently installing via a GitHub url... I think the the idea of having dependencies required in order to enable features might be an advantage in general to reduce the footprint and efficiency of the overall ChatterBot installation.

@gunthercox gunthercox merged commit d911b4a into master Aug 20, 2020
@gunthercox gunthercox deleted the imports branch August 20, 2020 21:16
@nbthinh
Copy link

nbthinh commented Mar 23, 2021

In my code:
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer

Create a new chat bot named Transporter

chatbot = ChatBot("Transporter")

Create a new trainer for the chatbot

chatbot.set_trainer(ListTrainer)

conversation = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome."
]

Training

chatbot.train(conversation)

Get a response to the input text 'Good morning!'

response = chatbot.get_response("Good morning!")

print(response)
Have error: AttributeError: 'ChatBot' object has no attribute 'set_trainer'
Would you mind helping me to solve this problem? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants