ChatBot Using Python Flask
ChatBot Using Python Flask
Abstract—In orde r to obtain information about the college, such In order to do this, a chat bot system must uses various technologies
as the colle ge fe e s, college facilities, the semester schedule, etc., like artificial intelligence, natural language processing etc. There are
stude nts usually need to visit the college administration throug hout various approaches of doing it,the approach used to construct a chat
the admissions process or as needed on a daily basis. In order to
bot depends on place where the chat bot is being employed, the
solve this issue, a chat bot may be created and built that can simply
be conne cted with any college website in order to deliver relevant features it plans to deliver, the target audience, etc. all have a role in
information about colleges. Chat-bots are software programs that choosing a suitable method.
conduct online chat conversations utilizing text or text -to-spee ch This literature review covers few of these approaches. Natural
which is proce ssed further, instead of putting you in direct contact Language Processing (NLP) is used to determine the context of an
with a re al human agent. The user’s request is processed by a chat query when a user submits one. To identify the input query’s
bot using natural language processin g, which produces a thoughtful
answe r. The chat bot is also powered by an artificial intelligence feelings, grammatical forms labeling and Word Net are used
syste m which itself decides the proper response to a certain query [5].Further processing is done by removing suffixes from words in
fire d by the use r based on the information contained in the database. English, many techniques such as the Lancaster Stemmer Algorithm
The task of the colle ge administration in giving information to [6], porter stemmer etc [7] are utilized. Word request proximity
stude nts can be le ssened by this system. between two sentences is estimated using the word request vector
Index Terms—Chat bot, Artificial Intelligence, Natural Lan-
guage Processing,Natural language toolkit, Flask, MySQL technique. Sentences that have the exact same words but are arranged
differently may have a completely disparate meaning, the chat bot
I. INTRODUCTION further evaluates the user’s confidence [8] score which helps the chat
A chat bot is a computer program that simulates human bot understand the query thoroughly. Finally query is processed
discussions in their natural setting in addition to text and voice through three keyword matching algorithms as part of the keyword
communication. When used with natural language processing, AI match calculation [9]. If the keyword matching is unsuccessful, the
approaches (NLP) [1], Latent Semantic Analysis (LSA) and query is then submitted to the database for 1 and 2 keyword
Artificial Intelligence M arkup Language [2] are utilized in the matching. The chat bot will respond with a predefined query like ”No
development of chat bots, which are used to describe general response Found” if the search doesn’t bring up any results that match
inquiries such as how do you do?, how can I assist you, and so on. the keywords in the question
[3] This pattern may also be used to generate random answers for the Another approach utilized for chat bot applications is the usage of
same question. In order to identify similarities between words as logic adapters to select an answer. The job done by an input adapter
vector representations, latent semantic analysis (LSA) is used. is to collect input from the bot source and then translate it into a
language that the chat bot can comprehend. The chat bot system
LSA interprets AIM L’s unanswered questions as a response.
employs a distinctive logic adaptor that permits selection of the
However, other chat bots employ more advanced techniques. The
appropriate response from a pool of offered possibilities. The M ulti
majority of chat bots primarily search for specific key -words,
Logic Adapter is used to choose one of the replies provided by the
phrases, and instances in their databases. Thus far, no chat bot has
logic adapters that the chat bot has been configured to utilize. Word
been able to completely fool humans into believing it is one of them
embedding is used for information preprocessing, Every word in this
by displaying typical dialect information [4]. This research
case is allocated to a vector, and the vector structure is spoken to in a
emphasizes the necessity for chat bots in the educational space and is
one-hot encoded way [10], suggesting that 1 signals the presence of a
built to satisfy readers.
word and 0 denotes everything else
II. LITERATURE REVIEW Natural Language Tool Kit (NLTK) is a Python module that
A variety of applications can be created by utilizing the science of assists in Natural Language Processing (NLP). Tokenizers are
artificial intelligence (AI). There is research being done on how to integrated into NLTK [11].
make the AI chat bots more informative, flexible, responsive and
informative which helps us finish a dialogue in an conversational
human language.
The NLTK includes several different tokenizers, including those that The architecture of the chat bot is shown in the following figure. The
adhere to the follow-ing norms: letters, paths, keywords, words, user’s roles include asking questions, providing feedback, and so
classes, N-grams, patterns, and so on. The most popular tokenizer is forth. All of the user’s functions are detailed below, as seen in figure
word-punkt [12], which punctuates phrases at empty spaces. The 2.
NLTK tokenizers are exceptional in terms of their accuracy, speed,
and efficiency. The chat bot programme answers to the users’
questions using computational logic.
If the user wants to give a feedback regarding the college, the chat
bot then the user can use the below shown figure of feedback box in
figure 3
V. CONCLUSION
It is frequently impossible to obtain all of the data on a single
interface without having to navigate through many forms and
windows. The college chat bot tries to eliminate this obstacle by
providing a common and user-friendly interface for college students
to handle their queries.A chatbot system’s goal is to mimic a human
conversation. Its architecture combines a language model and a
computational method to simulate information online communication
between a human and a computer using natural language
processing techniques. Stu-dents are welcome to post their
queries . The chat bot quickly and effectively searches for the
answers to users’ questions and finds the pertinent links. In order
Fig. 3. Feedback Box. to establish the right link, background research was conducted,
which included an overview of the discussion process and an
IV. RESULTS attempt to identify the pertinent keywords associated with that
query. Information regarding questions, responses, keywords, and
This has been implemented using Visual Studio code or VS code logs is stored in the database.
and the program is executed on a GPU, NVIDIA’s GeForce GTX To improve the answering capability of the chat bot the
1650 in a CUDA-integrated environment. Fig-ure 4 shows a clear administrator has to train the bot with more and more data
picture of the website, as well as the proposed chat bot icon on time to time as the data is collected in the MYSQL database
the website, which is located on the right bottom of the website and collecting feedbacks can help us improve the overall chat
page and in the figure 5 shows the chat bot answering various bot system and college web page. Users can use this chat bot
queries of a user. 24X7 from anywhere and at any time just by visiting the
college web page.
REFERENCES