ChatBot Report
ChatBot Report
A Project Report
Submitted By:
ABHIJEET PRATAP SINGH (1511010002)
of
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
at
PRAYAGRAJ, UP (INDIA)
LUCKNOW (INDIA)
MAY 2019
DECLARATION
I hereby declare that the project entitled “CHATBOT-BANDHU” submitted for the B. Tech.
(CSE) degree is my original work and the project has not formed the basis for the award of any
other degree, diploma, fellowship or any other similar titles.
This is to certify that the project titled “CHATBOT-BANDHU” is the bona fide work carried out
by ABHIJEET PRATP SINGH, a student of B Tech (CSE) of INSTITUTE OF ENGINEERING
AND RURAL TECHNOLOGY PRAYAGRAJ, UP (INDIA) affiliated to DR. A.P.J. ABDUL
KALAM TECHNICAL UNIVERSITY, UTTAR PRADESH, LUCKNOW (INDIA)during the
academic year 2018-19, in partial fulfillment of the requirements for the award of the degree of
Bachelor of Technology (Computer Science and Engineering ) and that the project has not formed
the basis for the award previously of any other degree, diploma, fellowship or any other similar
title.
I have taken efforts in this project. However, it would not have been possible without the kind
support and help of many individuals and organizations. I would like to extend my sincere thanks
to all of them.
I am highly indebted to Dr. Vimal Mishra (Director,IERT Prayagraj), Dr. B.D. Mazumdar (H.O.D,
CSE Department, IERT Prayagraj) and Ms. Charu Krishna (Asst. Professor, CSE Department,
IERT Prayagraj) for their guidance and constant supervision as well as for providing necessary
information regarding the project & also for their support in completing the project.
I would like to express my gratitude towards my parents & member of Institute of Engineering
and Rural Technology for their kind co-operation and encouragement which help me in completion
of this project.
I would like to express my special gratitude and thanks to industry persons for giving me such
attention and time.
My thanks and appreciations also go to my colleague in developing the project and people who
have willingly helped me out with their abilities.
I have taken efforts in this project. However, it would not have been possible without the kind
support and help of many individuals and organizations. I would like to extend my sincere thanks
to all of them.
ABSTRACT
Chatbots, or conversational interfaces as they are also known, present a new way for individuals
to interact with computer systems. Traditionally, to get a question answered by a software
program involved using a search engine, or filling out a form. A chatbot allows a user to simply
ask questions in the same manner that they would address a human. The most well-known
chatbots currently are voice chatbots: Alexa and Siri. However, chatbots are currently being
adopted at a high rate on computer chat platforms.
The technology at the core of the rise of the chatbot is natural language processing (“NLP”).
Recent advances in machine learning have greatly improved the accuracy and effectiveness of
natural language processing, making chatbots a viable option for many organizations. This
improvement in NLP is firing a great deal of additional research which should lead to continued
improvement in the effectiveness of chatbots in the years to come.
Table of Contents
1.Introduction …………………………………………………...……... 7.
8. Demonstration…………………………………………………….. 19.
Introduction
A CHATBOT is an artificial person, animal or other creature which holds conversations with humans. This
could be a text based (typed) conversation, a spoken conversation or even a non-verbal conversation. Chat
bot can run on local computers and phones, though most of the time it is accessed through the internet. Chat
bot is typically perceived as engaging software entity which humans can talk to. It can be interesting,
inspiring and intriguing. It appears everywhere, from old ancient HTML pages to modern advanced social
networking websites, and from standard computers to fashionable smart mobile devices. Chat bots talk in
almost every major language. Their language (Natural Language Processing, NLP) skills vary from
extremely poor to very clever intelligent, helpful and funny. The same counts for their graphic design,
sometimes it feels like a cartoonish character drawn by a child, and on the other hand there are photo-
realistic 3D animated characters available, which are hard to distinguish from humans. And they are all
referred to as “chat bots”.
Chatbot Bandhu is a chatbot capable of giving answers on the basis of user queries .It is developed for the
purpose of resolving user queries like frequently asked questions. Introduce “Bandhu” as an alternative to
existing FAQs section and help reduce workload of teams currently engaged in redundant task of responding
to same kind of queries from end users
So, the chatbot being developed should be able to do the following activities:
1) Answering questions from users which are based on FAQs of the application using NLP techniques
2) Displaying user statistics from existing business database based on user queries.
Thus introducing a chatbot like Bandhu can help us in the situations where there is lot of rush in quick time
and repeatedly same type of queries are asked by the users .Thus it can be very useful to handle such users
.It can be implemented at railway stations or in other business organizations .
Chapter 2
Technolgies Used
1. Apache Open NLP 1.9 It is a java library for natural language processing developed by
apache organization.
2. Tomcat It is the server for hosting the application.
8. JAVA Java programming language has used for the development of this
project.
Chapter 3
Module Information
Modules used in chatbot development as follow:
3.1. IntentTrainer
An untrained instance of ChatBot starts off with no knowledge of how to communicate. This
module is used to train the dataset to chatbot. Each time a user enters a statement , that data also
used to train the chatbot further.
3.2. IntentDocumentSample
ChatBot includes tools that help simplify the process of training a chat bot instance. ChatBot’s
training process involves loading example dialog into the chat bot’s database.
3.3. SentenceDetectionME
Allows a chat bot to be trained using a list of strings where the list represents a conversation. For
the training process, you will need to pass in a list of statements where the order of each
statement is based on its placement in a given conversation.
For example, if you were to run bot of the following training calls, then the resulting chatterbot
would respond to both statements of “Hi there!” and “Greetings!” by saying “Hello”.
3.4. SimpleTokenizerExample
This model of Apache Open Nlp toolkit is used for the tokenization of the language .It tokenizes
the user queries and further the user queries are matched for intent recognition.
3.5.2 en-person.bin
This model has been used in this project to find the names of the persons present in the user
query.
This model will find the name present in the user input query even if there is any grammatical
error.
A data flow diagram (or DFD) is a graphical representation of the flow of data through an
information system. It shows how information is input to and output from the system, the sources
and destinations of that information, and where that information is stored.
5.1. LEVEL 0 DFD
Chapter 7
ChatBot
7.1 ScreenShots Of Chatbot