dineshsambasivam / chatbot_project Goto Github PK
View Code? Open in Web Editor NEWChatBot with interactive UI using simple web socket server
ChatBot with interactive UI using simple web socket server
I have writted this code based on your own:
from chatterbot.trainers import ListTrainer # method to train the chatbot
from chatterbot import ChatBot # import the chatbot
import os
chatbot = ChatBot('Bot')
trainer = ListTrainer(chatbot)
for files in os.listdir('C:/Users/franc\Documents\Bachelorarbeit\data\SmartHome/'):
data = open('C:/Users/franc\Documents\Bachelorarbeit\data\SmartHome/' + files, 'r').readlines()
trainer.train(data)
while True:
message = input('You: ')
if message.strip()!= 'Bye':
reply = chatbot.get_response(message)
print('Chatbot: ', reply)
if message.strip() == 'Bye':
print('ChatBot: Bye')
break
How can i use logic adapter to make the bot clever ?
hi mr.dinesh.I am facing problem with this training code.after executing it it appears as "chatbot object has no attribute 'set_trainer'".please resolve this
What is the python version you are using for chatbot.
================================ RESTART ================================
Traceback (most recent call last):
File "C:\Users\DellBot\Downloads\Chatbot_Project-master\Chatbot_Project-master\chatbot_train.py", line 1, in
from chatterbot import ChatBot
ImportError: No module named chatterbot
================================ RESTART ================================
Traceback (most recent call last):
File "C:\Users\DellBot\Downloads\Chatbot_Project-master\Chatbot_Project-master\chatbot.py", line 1, in
from chatterbot import ChatBot
ImportError: No module named chatterbot
Not getting appropriate reply.
just getting - I am sorry but i do not understand.
please help me.
When an input is given on the website the server Closes with this output in the terminal.
('::1', 65370, 0, 0) connected
('::1',65370, 0, 0) closed
Hi Dinesh,
I have tried that code and while executing getting below error.
File "C:\Users\Anaconda3\lib\site-packages\spacy-2.1.3-py3.6-win-amd64.egg\spacy\util.py", line 136, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
No idea how to resolved it. I have installed spacy and import load.
Can you please help on this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.