Research Paper of Chatbot
Research Paper of Chatbot
Samadesh
Kushagra
Poudel
Singh
2021828544
2021507825
2nd Year/ 3rd Semester
2nd Year/ 3rd Semester
COLLEGE OF ENGINEERING
COLLEGE OF ENGINEERING
SHARDA UNIVERSITY NOIDA
SHARDA UNIVERSITY NOIDA
[email protected]
[email protected]
C. Hash table:
Hash Tables-Hash Table is a data structure
which stores data in an associative manner. In
a hash table, data is stored in an array format,
where each data value has its own unique
index value. Access of data becomes very fast
if we know the index of the desired data.
3. Algorithm used:
The algorithms used are
Hash functions- A hash function
which is responsible to converts a
given numeric or alphanumeric
String filtering Fig.1: Use Case Diagram of Chatbot Design.
Sorting
Stemming A. Selection of OS
Lemmatization
Windows is used for this project because it is
user friendly. It is also robust.
D. Creating a Chat
Design of chatbot:
The chat is created using a pattern that is known to
the user and could be easy to understand. Chat
A Chatbot refers to a chatting robot. It is a
dialog box show up to create conversation. This
communication simulating computer
dialog box is created using java applets.
program. It is all about the conversation with
the user. The conversation with a Chatbot is
E. Pattern Matching
very simple. It answers to the questions
asked by the user. During designing a It is a technique of artificial intelligence used in
the design of a Chatbot. The input is rows contain the response or answers. Columns
matched with the inputs saved in the in the array are applied to save different types of
database. questions that could asked by the user and
responses that a Chatbot can answer. There is
F.Simple
one row in the array which contains default
The design of a Chatbot is very simple. It responses which is used when the matching
just answers to the questions asked by the question is not found in the array.
user, if the question is found in the database.
B. Modules Description
G.Conversational and Entertaining
The description of the modules used in the
The Chatbot responses are a way known to implementation is given below [6]:
the user. The conversation follows a Basic
Chatbot()
English language and interacts in an easy to
In this function, all the variables used for
read manner. The conversation between the
creating the dialog box are added. Default close
user and the Bot is entertaining. It is like
operation is set to EXIT_ON_CLOSE so that
talking to other person.
the dialog box closes on exit. Required
background colour is set using inbuilt set
Background () function.
Implementation of chatbot: Random()
The input from the user is taken using get Text
Chatbot is a computer application which () function. All the punctuation marks in the
uses artificial intelligence to mimic human users input are removed using trim () function.
conversation. It helps the user by answering The uppercase letters are converted to
the questions asked by them. The program is lowercase. A variable called response is used to
implemented using Java programming hold a byte value and it is set to 0. While
language. Particularly Java and c++ applets response is 0, the match for the input is found in
are used. Applets are used because it is easy the database and it is returned as a response
to create the dialog box required for the which is displayed in the text area. If the
conversation between the user and the bot. response is 1, then the match for the input is not
Detailed implementation is given below [5]: found in the database. In this case, a default
response is returned. Random () function is used
A. Fundamental Design Techniques and to choose the response saved in the database [7].
Approaches
AddText()
Creating the dialog box All the texts or strings used in input and output
All the packages required for creating are added to the text area in the dialog box.
the dialog box are imported. The size
of the dialog box and text area inside InArray()
the dialog box is given. Vertical This is used as a pattern matching function. A
scrollbar is used so that the screen is variable match is used to hold a Boolean value
scrolled as the conversation goes on. and it is set to false. If the match for the users
Horizontal scrollbar is never used input is found in the database, true is returned else
because the size of the dialog box is false is returned as a result. This value is returned
fixed. to keyPressed() function and the result is
Creating a database displayed in the dialog box.
Two dimensional string arrays are
applied to build a database. Rows in
the array are used for request and
response. All the even rows contain the
request or questions and all the odd
Output: Conclusion: A chatbot is one of the simple ways to
transport data from a computer without having to
think for proper keywords to look up in a search or
browse several web pages to collect information;
users can easily type their query in natural language
and retrieve information. In this paper, information
about the design, implementation of the chatbot has
been presented. From the survey above, it can be
said that the development and improvement of
chatbot design grow at an unpredictable rate due to
variety of methods and approaches used to design a
chatbot. Chatbot is a great tool for quick interaction
with the user. They help us by providing
entertainment, saving time and answering the
questions that are hard to find. The Chatbot must be
simple and conversational. Since there are many
designs and approaches for creating a chatbot, it
can be at odds with commercial considerations.
Researchers need to interact and must agree on a
common approach for designing a Chatbot. In this
project, we looked into how Chatbots are developed
and the applications of Chatbots in various fields.
In addition comparison has been made with other
Chatbots. General purpose Chatbot must be simple,
user friendly, must be easily understood and the
knowledge base must be compact. Although some
of the commercial products have recently emerged,
improvements must be made to find a common
approach for designing a Chatbot.
6. References: