Chào mọi người.
Mình có đoạn code Python trong việc tạo chatbot mà chạy bị lỗi… mình k hiểu lỗi này là sao và làm tnao để fix.
Mình xin cảm ơn!
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
chatbot = ChatBot('HA')
trainer = ListTrainer(chatbot)
trainer.train([
    "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.')
print(response)
        
      
    
    83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?