Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- codding: utf-8 -*-
- from chatterbot import ChatBot
- from chatterbot.trainers import ListTrainer
- bot = ChatBot("edu magro")
- conversa = ['oi', 'ola', 'tudo bem?', 'tudo Otimo']
- bot.set_trainer(ListTrainer)
- bot.train(conversa)
- while True:
- request = input("You: ")
- resposta = bot.get_response("request")
- print("Bot: ", resposta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement