Академический Документы
Профессиональный Документы
Культура Документы
1
CERTIFICATE
This is to certify that the project entitled `EVENT INFORMER' being submitted
by ANKIT BHOGE (16IT1058), JINITA BHATT (16IT1010), PRASAD BAN
(16IT1055) to the University of Mumbai in partial fulfillment of the requirement
for the award of the degree of ‘B.E.I.T’ in “Artificial Intelligence”.
2
DECLARATION
We declare that this written submission represents our ideas in our own words and
we here others' ideas or words have been included, we have adequately cited and
referenced the original sources. We also declare that we have adhered to all
principles of academic honesty and integrity and have not misrepresented or
fabricated or falsified any idea/data/fact/source in our submission. We understand
that any violation of the above will be cause for disciplinary action by the Institute
and can also evoke penal action from the sources which have thus not been
properly cited or from whom proper permission has not been taken when needed.
2. JINITA BHATT(16IT1010) ( )
Date:
Place:
3
ACKNOWLEDGEMENT
We would like to express our gratitude to Principal Dr. Mukesh D. Patil and Dr.
Ashish Jadhav, our Head of the department, Information Technology Engineering
for encouraging and inspiring us to carry out the project in the department lab.
We would also like to thank our Guide Mrs. Anita Patil, Department of the
Information Technology Engineering for her expert guidance, encouragement and
valuable suggestions at every step.
We also would like to thank all the staff members Department of the Information
Technology Engineering for providing us with the required facilities and support
towards the completion of the project.
Last but not the least we are thankful to our parents and friends for their constant
Inspiration, encouragement and well wishes by which we have made a challenging
project.
4
PREFACE
5
TABLE OF CONTENTS
Declaration …………….…….…………………………………………I
Acknowledgement………...……………………………………………II
Preface …………………………………………………………………III
Table of Contents ………………...……………………………………IV
Table of figures ...…………………...……………………………….…V
Abstract………………………………….………………………….....VI
6
TABLE OF CONTENTS
7
TABLE OF FIGURE
1. Use case diagram for ChatBot……………………………………………………………12.
2. Seqeunce diagram representing design of chtabot…………………………………… ….14
3. Cmd1………………………………………………………………………………...……18
4. Cmd2…………………………………………………………………………………..…18
5. Chatbot……………………………………………………………………………19
8
ABSTRACT
Here in this Mini project Artificial intelligence, with Chatbot as headline topic. we
are having as a system which can give information about an event going on in
college. Here participants or the visitor will ask a certain question which they want
to know and through our chatbot, they will get answers to all of that. In this way,
we can let to know about our college and its festival even without a present in
college.
9
1. Introduction
1.1 Introduction to AI
Artificial intelligence as the “copy of something natural (i.e., human beings)
‘WHO’ is capable of acquiring and applying the information it has gained through
exposure.” Many tools are used in AI, including versions of search and
mathematical optimization, logic, methods based on probability and economics.
The AI field draws upon computer science, mathematics, psychology, linguistics,
philosophy, neuro-science, artificial psychology and many others. Applications of
AI include Natural Language Processing, Gaming, Speech Recognition, Vision
Systems, Healthcare, and Automotive etc. An AI system is composed of an agent
and its environment. An agent (e.g., human or robot) is anything that can perceive
its environment through sensors and acts upon that environment through effectors.
Intelligent agents must be able to set goals and achieve them.
1.3 Objectives
• To create chatbot which tell about information of event
• To understand the concept of chatbot
• To implement the AI and machine learning technique to solve real life
probolem
10
2. Literature survey
2.1 Literature survey
• A Tool of Conversation: Chatbot
11
3. Proposed System
3.1 Introduction to Proposed System
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.
By using this we can build chatbot which can be used to provide details of event.
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. For example if some asked
“where is event Neon Cricket?’ it should response “Neon Cricket is in 606.”
12
3.2 Hardware and Software requirement
For Creating a efficient chatbot one must consider following points:
A. Selection of OS
Windows is used for this project because it is user friendly. It is also robust.
B. Selection of Software
Eclipse software is used for programming in java. Because it contains basic
workspace and it is mostly used for java applications.
C. Creating a Chatbot
For creating a Chatbot, a program has to be written. Java programming
language is used for programming. The Chatbot is created in such a way to
help the user, improve the communication and amuse the user.
D. Creating a Chat
The chat is created using a pattern that is known to the user and could be
easy to understand. Chat dialog box show up to create conversation. This
dialog box is created using java applets.
E. Pattern Matching
It is a technique of artificial intelligence used in the design of a Chatbot. The
input is matched with the inputs saved in the database and corresponding
response is returned.
F. Simple
The design of a Chatbot is very simple. It just answers to the questions
asked by the user, if the question is found in the database.
G. Conversational and Entertaining
The Chatbot responses are a way known to the user. The conversation
follows a Basic English language and interacts in an easy to read manner.
The conversation between the user and the Bot is entertaining. It is like
talking to other person.
13
Fig. 2 : Seqeunce diagram representing design of chtabot
4. Implementation
4.1 Code
train.py
try:
os.remove("db.sqlite3")
print("Old database removed. Training new database")
except:
print('No database found. Creating new database.')
14
english_bot = ChatBot('Bot')
english_bot.set_trainer(ListTrainer)
for file in os.listdir('data'):
print('Training using '+file)
convData = open('data/' + file).readlines()
english_bot.train(convData)
print("Training completed for "+file)
run.py
filenumber=int(os.listdir('saved_conversations')[-1])
filenumber=filenumber+1
file= open('saved_conversations/'+str(filenumber),"w+")
file.write('bot : Hi There! I am a eillie chatbot for official Elixir techfest of RAIT-
ACM.\n')
15
file.close()
app = Flask(__name__)
english_bot = ChatBot('Bot',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
logic_adapters=[
{
'import_path': 'chatterbot.logic.BestMatch'
},
],
trainer='chatterbot.trainers.ListTrainer')
english_bot.set_trainer(ListTrainer)
@app.route("/")
def home():
return render_template("index.html")
@app.route("/get")
def get_bot_response():
userText = request.args.get('msg')
response = str(english_bot.get_response(userText))
16
appendfile=os.listdir('saved_conversations')[-1]
appendfile= open('saved_conversations/'+str(filenumber),"a")
appendfile.write('user : '+userText+'\n')
appendfile.write('bot : '+response+'\n')
appendfile.close()
return response
if __name__ == "__main__":
app.run()
17
5. Result
Cmd1
Cmd2
18
Chatbot
19
6. Conclusion and Scope
6.1 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. General purpose Chatbot must be
simple, user friendly, must be easily understood and the knowledge base must be
compact. Thus these will help students to get information about the event and
about college easily available at fingertips. This might help in providing
information to the students who are willing to take admission in our college.
20