i need help on assignment 3 chatbot for computer science
from chatterbot import Chatbot
from chatterbot.trainers import ListTrainer
my_bot=Chatbot(name='PyBot',read_only=True,logic_adapters=
['chatterbot.logic.MathematicalEvaluation','chatterbot.logic.BestMatch'])
small_talk=['Hi',
'Hi,There',
'How do you do']
list_trainer=ListTrainer(my_bot)
for item in (small_talk):
list_trainer.train(item)
print(my_bot.get_response("hi"))
Comments
Leave a comment