Fatima Ahmed
ok, can you please send me the source code of your main program? I think you named it ourchatbot in this tutorial. So basically you used the github code and your code together for this chatbot to work, right?
from chatterbot import ChatBot
from chatterbot.trainers import... moreyes...here's the code..
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os
bot=ChatBot('Bot')
bot.set_trainer(ListTrainer)
for files in os.listdir ('C:/Users/Masum\Desktop\chatterbot-corpus-master\chatterbot_corpus\data\english/'):
data = open ('C:/Users/Masum\Desktop\chatterbot-corpus-master\chatterbot_corpus\data\english/'+files, 'r').readlines()
bot.train(data)
while True:
message = raw_input ('You:')
if message.strip() != 'Bye':
reply = bot.get_response(message)
print('ChatBot:',reply)
if message.strip() == 'Bye':
print('ChatBot: Bye')
break less
Fatima Ahmed
ok, can you please e-mail me the ourchatbot.py file? I will include it in the main featured article for people to download it...
April 16, 2018
Fatima Ahmed
OK, got the file. Last thing...do you think you can share the original mp4 file also? While adding the music/visual effects before posting to my main site, I may need it, so I dont have to re-record again.
from chatterbot import ChatBot
from chatterbot.trainers import... more