Professional Documents
Culture Documents
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
BANDHU 1
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.
BANDHU 2
CERTIFICATE
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.
Signature of the
Guide
Place:
Date:
BANDHU 3
ACKNOWLEDGEMENT
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 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.
BANDHU 4
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.
BANDHU 5
Table of Contents
1.Introduction …………………………………………………...……... 7.
2. Technologies
Used ..............................................................................
9.
3. Modules
Information .......................................................................
. .10.
3.1. IntentTrainer
…...............................................................................
10.
3.2.
IntentDocumentSample……...........................................................
10.
3.3.
SentenceDetectionME…...............................................................
.. 10.
3.4.
SimpleTokenizerExample…...........................................................
10.
3.5 Models used of Apache Open NLP ………………...……………. 11.
3.5.1 en-token.bin ……………..……………………….………… 11.
3.5.2 en-person.bin ………………..………………….…………… 11.
4. Use Case
Diagram ...........................................................................
. 12.
5. Data Flow
Diagrams……….............................................................. 13.
5.1. LEVEL 0
DFD…........................................................................... 14.
5.2. LEVEL 1 DFD………………..................................................... 14.
5.3. Level 2
DFD….............................................................................
15.
6. Entity Relationship
Diagrams .......................................................... 16.
8. Demonstration…………………………………………………….. 19.
Introduction
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
BANDHU 7
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
.
BANDHU 8
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.
Chapter 3
BANDHU 9
Module Information
Modules used in chatbot development as follow:
3.1. IntentTrainer
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
BANDHU 10
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.
BANDHU 11
Chapter 4
BANDHU 12
Chapter 5
Data Flow Diagrams:
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.
BANDHU 13
5.1. LEVEL 0 DFD
BANDHU 14
Chapter 6
BANDHU 15
Entity Relationship Diagrams
Chapter 7
BANDHU 16
ChatBot
7.1 ScreenShots Of Chatbot
BANDHU 17
Chapter 8
BANDHU 18
Demonstration
The demonstration was carried out with mentor through remote desktop sharing
(teamviewer) on
10th and 15th October, 2018. The installation of the server, database were walked
through. The
database design checked as per the report, the server logs were also checked. The
server instance
was started and website displayed on the remote machine. Complete walkthrough of
the
application and its functionality was provided. Hands-on was done by the mentor
with the login
credentials provided.
BANDHU 19
Chapter 9
Future Enhancements
Self-training of chatbot
Improving training dataset
Enhancement in response time
Proper Database connectivity
More Interactive interface
AI improvement and bugfixes
BANDHU 20