I faced the issue when run code as below… I don’t know why it happen.
Pls support me this issue.
Thanks you so much!
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
chatbot = ChatBot(‘Charlie’)
trainer = ListTrainer(chatbot)
“Hi, can I help you?”,
“Sure, I’d like to book a flight to Iceland.”,
“Your flight has been booked.”
Get a response to the input text ‘I would like to book a flight.’
response = chatbot.get_response(‘I would like to book a flight.’)