NLP Report Merged
NLP Report Merged
ON
“Chatbot in Python”
BY
ASANGAON 421601.
INTRODUCTION
Chatbot is an automated software program that interacts with humans using natural language.
Chatbot are programs that work on Artificial Intelligence (AI) & Machine Learning platform.
This software program conducts conversation with users via textual methods
In this project, Chatbot is developed using python programming language in google collabs.
ABSTRACT
Chatbots are usually a stateful services, remembering previous commands in order to provide
functionality.
It gives answers to the user in a text-based commands. The questions could be regarding
college details.
EXISTING SYSTEM
User need to personally visit the college and ask the college help desk, if the students have
any queries about the college.
It takes lot of time and money if the college is miles away from the student native place.
DISADVANTAGE:
The chat bot system is not known to people who do not have more knowledge about the
technology
Even if there exist a chatbot system, it is not much accurate in providing the answer or
solution
Also this process may lead to communication gap between student and college.
PROPOSED SYSTEM
Students have to query through the bot which is used for chatting.
The system uses Built in tensorflow, tflearn libraries and NLP, Neural network concepts.
Chart bot can run on local computers and phones, smart devices.
SYSTEM REQUIREMENTS
Software requirements
HARDWARE REQUIREMENTS
Monitor : 15"LED
RAM : 4 GB
MODULES
User Module:
Speech to Text: User will ask the computer to run command by giving input as speech.
Command Execution: Based on command receive from the user, system will execute the
command (if available).
Chatbot Module:
The machine has been embedded knowledge to identify the sentences and making a decision
itself.
User can chat with the bot it implies as if enquiring to the college person about college
related activities.
Information Module:
The question relevant to college the system search and gives that particular college
information.
DESIGN:
UML DIAGRAMS
USECASE DIAGRAM
CLASS DIAGRAM
SEQUENCE DIAGRAM
ACTIVITY DIAGRAM
Coding:
import re
message_certainty = 0
has_required_words = True
if word in recognised_words:
message_certainty += 1
has_required_words = False
break
if has_required_words or single_response:
else:
return 0
def check_all_messages(message):
highest_prob_list = {}
nonlocal highest_prob_list
# Responses ----------------------------------------------------------------------------------------------
---------
response('I\'m doing fine, and you?', ['how', 'are', 'you', 'doing'], required_words=['how'])
# Longer responses
# print(highest_prob_list)
def get_response(user_input):
response = check_all_messages(split_message)
return response
while True:
OUTPUT:
CONCLUSION:
This chatbot can answer to the queries in the textual user input.
JSON file (which contains questions and its respective answers) has been created and loaded
into the machine.
FUTURE SCOPE:
It is getting more efficient day by day and the next scope is multilinguistic responses.
Human alike.
REFERENCES:
[1] Bayan Abu Shawar and Eric Atwell, 2007 "Chatbots: Are they Really Useful?"
[2] Bringing chatbots into education: Towards natural language negotiation of open learner
models. Know.-Based Syst. 20, 2 (Mar. 2007), 177-185.
[3] http://en.wikipedia.org/wiki/Chatterbot
[5] Kumar, M Naveen, PC Linga Chandar, A Venkatesh Prasad, and K Sumangali (2016).
"Android based educational Chatbot for visually impaired people". In: International
Conference on Computational Intelligence and Computing Research (ICCIC), 2016 IEEE,
IEEE, pp. 1–4.
[6] Ranoliya, Bhavika R, Nidhi Raghuwanshi, and Sanjay Singh (2017). "Chatbot for
University Related FAQs". In: 2017 International Conference on Advances in Computing,
Communications and Informatics (ICACCI). Udupi, pp. 1525–1530.