Student Information Chatbot Final Report
Student Information Chatbot Final Report
Student Information Chatbot Final Report
OR
Final Report
Submitted to
P P Savani University
Surat
Submitted by
J enil Chaka1asiya(1sSS02lT00 2)
Smit Donda( i OSS0 2lT006)
Jaykumar Savani(inSS02lT031)
B. Sc.lT
P SAVANI
School of Engineering
P P Savani University
May, 2019-20
P P SAVANI
U N I V E R S I T Y
Date:
Jenil Chakalasiya(18SS02IT002)
Smit Donda (18SS02IT006)
Jaykumar Savani (18SS02IT031)
ABSTRACT
1.1Introduction
This A chatbot. ' is a computer program which conducts a conversation via textual
method. Such programs are often designed to convincingly simulate how a human would
behave as a conversational partner, thereby passing the Turing test. Chat bots are
typically used in dialog systems for various practical purposes including user service or
information acquisition. This system which will provide answers to the queries of the
users.
User interfaces for software applications can come in a variety of formats, ranging
from command-line, graphical, web application, and even voice. While the most popular
user interfaces include graphical and web-based applications, occasionally the need
arises for an alternative interface. Whether due to multi-threaded complexity, concurrent
connectivity, or details surrounding execution of the service, a chat bot-based interface
may suit the need.
Chat bots typically provide a text-based user interface, allowing the user to type
commands and receive text as well as text to speech response. Chat bots are usually a
stateful services, remembering previous commands (and perhaps even conversation) in
order to provide functionality. When chat bot technology is integrated with popular web
services it can be utilized securely by an even larger audience.
machine-friendly query, then going through relevant data to find the necessary
information, and finally returning the answer in a natural language sentence. In other
words, it answers your questions like a human does, instead of giving you the list of
websites that may contain the answer. For example, when it receives the question 'what
is the age of Ravi ', it will give a response "I prefer Registration numbers. Since you have
been good to me, I'll show the results: Age of Ravi is 21 ’ The goal is to provide chatbot
students and faculty a quick and easy way to have their questions answered, as well as to
offer other developers the means to incorporate Chatbot into their projects.
CHAPTER 2
REQUIREMENT SPECIFICATION
2.1 Introduction
It takes a lot of work to turn a chatbot idea into a project. In fact, it requires a
complete step-by-step chatbot strategy starting from goal definition to publishing and
maintenance.
Once the bot is deployed for end users, it’s important to keep a check on its
performance and continue to refine its namral language understanding through further
training. The bot should be aware if a user is authorized and properly authenticated to
chat with it. This ensures that the bot is able to provide the right set of relevant services
for a particular user.
In today’s world computers play an important role in our society. Computers give
us information; they entertain us and help us in lots of manners. A chatbot is a program
designed to counterfeit a smart communication on a text or spoken ground. But this paper
is based on the text only chatbot. Chatbot recognize the user input as well as by using
pattern matching, access information to provide a predefined acknowledgment. For
example, if the user is providing the bot a sentence like ' What is your name?’ The chatbot
is most likely to reply something like "My name is Chatbot.’ or the chatbot replies as "You
can call me Chatbot. ’ based on the sentence given by the user. When the input is bringing
into being in the database, a response from a predefined pattern is given to the user. A
Chatbot is implemented using pattern comparing, in which the order of the sentence is
recognized and a saved response pattern is acclimatize to the exclusive variables of the
sentence. They cannot register and respond to complex questions, and are unable to
perform compound activities.
CHAPTER 4
DESIGN (continue)
In this diagram can show User Communicate with Chatbot and User can input the
Questions. The Chatbot can receive the User Input and Compare Strings with Chatbot
Database and Return Output.
CHAPTER 5
SYSTEM IMPLEMENATION (continue)
5. l Sample
code
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
import pandas as pd
d_sex = dataset['Sex']
d_age = dataset['Age ]
d_regno = dataset['RegNo ]
d_name = dataset['Name
d_marks = dataset['Marks J
d_mobno = dataset['MobNo ]
import_path : chatterbot.logic.BestMatch
'import_path': 'chatterbot.logic.LowConfidenceAdapter',
CHAPTER 5
SYSTEM IMPLEMENATION (continue)
threshold': 0.50,
'default_response': 'I am sorry, but I do not understand.'
inpiit_adapter="chatterbot.input.TerminalAdapter™,
output_adapter = 'chatterbot.output.TerminalAdapter '
lowest_name =
lowest_regno = '
topper_name =
topper_regno =
no_of_people_90 = 0
for i in range(0,len(d_marks)):
if d_marks[i1 -- min(d_marks):
lowest_name = d_nam e[i1
lowest_regno = d_regno[i]
if d_marks[i] == max(d_marks):
topper_name = d_nam e[i1
topper_regno = d_regno[i]
bot.set_trainer(ChatterBotCorpusTrainer)
bot.train("chatterbot.corpus.english ')
bot.set_trainer(ListTrainer)
for i in range(0,len(d_marks)):
bot.train([
'Give me the complete details of{} '.format(d_regno[i]),
'\nHere are the details:Registeration No.: {}; Name: (} Age: {} Sex: {} Marks: (}
Mobile No.: {} '.format(d_regno[i], d_name[i], d_age[i], d_sex[i], d_marks[i], d_mobno[ill .
'complete details of{} '.format(d_regno[i]),
'\nHere are the details:Registeration No.: {}; Name: {} Age: {} Sex: {} Marks: {}
Mobile No.: {} '.format(d_regno[i 1. d_name[i], d_age[iJ, d_sex[i], d_marks[i1. d_mobno[i]),
Ii
bot.train([
"what is the marks of{} '.format(d_regno[i]),
'Marks of{} - {} is {} '.format(d regno[i], d_name[i], d_marks[i]),])
bot.train([
'what is the age of{} '.format(d_regno[i ll .
'Age of{} - {} is {}".format(d_ name[i1. d_regno[i1. d_age[i]), j)
bot.train([
"what is the mobile number of{}".format(d_regno[i]),
"Mobile number of{} - {} is {} '.format(d_regno[i], d_name[i], d_mobno[i]),])
bot.train([
'what is the marks of{} '.format(d_name[i]),
CHAPTER 5
SYSTEM IMPLEMENATION (continue)
'I prefer Registeration numbers.. Since you have been good to me, I'll show the results :
Marks of{} - {} is {} '.format(d_regno[i], d_name[i], d_marks[i]),])
bot.train([
"what is the age of{}".format(d_name[i]),
"I prefer Registeration numbers.. Since you have been good to me, I'll show the
results :Age of{} - {} is {}".format(d_name[i], d_regno[i], d_age[ij),
II
bot.train([
'what is the mobile number of{} '.format(d_name[i]),
'I prefer Registeration numbers.. Since you have been good to me, I'll show the
results :Mobile number of{} - {} is {} '.format(d_regno[i 1. d_name[iJ, d_mobno[i]),
bot.train([
"what is the class average?',
'The class average is {} '.format(sum(d_marks)/len(d_marks))
bot.train([
"what is the lowest marks?",
'The Lowest marks is {} '.format(min(d_marks))
bot.train([
"how many failures?",
"These many guys got below 40 {}".format(no_of_failures)
bot.train([
CHAPTER 5
SYSTEM IMPLEMENATION (continue)
bot.train([
'what is the highest marks?',
'The highest marks is {} '.format(max(d_marks))
bot.train([
'who got the highest marks? ',
"The highest marks is {}, obtained by {} {} '.format(max(d_marks), topper_name,
topper_regno)
II
bot.train([
'who got the lowest marks? ',
'The lowest marks is {}, obtained by {} {} Feel sad for the
chap '.format(min(d_marks), lowest_name, lowest_regno)
bot.train([
'Who all got above 90 '
'{} '.format(no_of_people_90)
hot.train("chatterbot.corpus.english ')
text = input_function()
if yes' in text.lowers.
return False
elif no in text.lower():
return True
else:
print( Please type either 'Yes ' or 'No ”)
return get_feedback()
while True:
try:
input_statement = boLinput.process_input_statement()
statement, response = bot.generate_response(input_statement, CONVERSATI ON_ID)
bot.output.process_response(response)
print('\n’)
In this project, we have introduced a chatbot for student information that is able to
interact with faculty and student. This chatbot can answer queries in the textual user
input. The main objectives of the project were to develop an algorithm that will be used
to identify answers related to user submitted questions. To develop a database were
all the related data will be stored and to develop a web interface. The web interface
developed had one-part simple users. A database was developed, which stores
information about questions, answers, keywords, logs and feedback messages. An
evaluation took place from data collected. after received feedback from the first
deployment, extra requirements were introduced and implemented.
ADVANTAGES:
• This application saves time for the student as well as teaching and non-teaching
staffs.
• User does not have to go personally to college office for the enquiry.
• Getting an instant response.
• Easy communication
FUTURE SCOPE
1. Linguistic and conversational ability must improve.
2. Voice interface.
3. Faster problem solving
4. Better insights & consumer analytics
REFERNCES
' Chatbot: chat robot, a computer program that simulates human conversation, or chat,
through artificial intelligence. Typically, a chat bot will communicate with a real person.
l*1UML:The Unified Modeling Language (UML) a general-purpose,
developmental, modeling language in the field of software engineering that is intended to
provide a standard way to visualize the design of a system.