0% found this document useful (0 votes)
10 views

7 Python Report Eddd

The document describes a micro project report for developing a chat bot using Python. It includes details like the aim, methodology, action plan, resources required and outcomes achieved. The project involved coding a basic chat bot using Python concepts like functions, classes, dictionaries and exception handling.

Uploaded by

12nzalte
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

7 Python Report Eddd

The document describes a micro project report for developing a chat bot using Python. It includes details like the aim, methodology, action plan, resources required and outcomes achieved. The project involved coding a basic chat bot using Python concepts like functions, classes, dictionaries and exception handling.

Uploaded by

12nzalte
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

lOMoARcPSD|34756506

7 python report eddd

Chemistry (Shri Ramsheth Thakur College of Commerce & Science)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

MAHARASHTRA STATE BOARD OF TECHNICAL


EDUCATION
VIVEKANAND EDUCATION SOCIETY POLYTECHNIC
MICRO PROJECT
Academic year: 2020-2021

TITLE OF MICRO-PROJECT
CHAT BOT
Program: COMPUTER ENGINEERING Program Code: CO6I
Course: PROGRAMMING WITH PYTHON Course code: 22616

Group Details:

Sr.
No Name of Group members Roll No Enrollment No

1 Amaan Patel 05 1800040243

2 Niyati Avhad 06 1800040244

3 Amaresh Baranwal 07 1800040245

4 Maithili Bhosale 08 1800040246

Name of Project Guide: Mrs. Pratibha Pednekar

Downloaded by dream girl ([email protected])


lOMoARcPSD|34756506

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION


Certificate
th
This is to certify that Amaresh Deviprasad Baranwal Roll No. 07 of 6 Semester of Diploma in
Computer Engineering Of Institute, V.E.S Polytechnic (Code: 0004) has completed the Micro
Project satisfactorily in Subject – Programming with Python (22616) for the academic year
2020 - 2021 as prescribed in the curriculum.

Place: Chembur, Mumbai Enrollment No: 1800040245

Date: Exam Seat No:

Subject Teacher Head of the Department Principal

Seal of
Institution

Downloaded by dream girl ([email protected])


lOMoARcPSD|34756506

INDEX

Academic year: 2020-21 Name of the faculty: Mrs. Pratibha Pednekar

Program code: CO6I Course & course code: PWP (22616)


Enrollment No.: 1800040245 Roll No.: 07

Name of the candidate: Amaresh Deviprasad Baranwal

Sr.
No Content Page No.

1 Project Proposal 01

2 Action plan 02

3 Resource required 02

4 Introduction 03

5 Actual Procedure 05

6 Output 08

7 Skill developed 09

8 Evaluation sheet 12

Downloaded by dream girl ([email protected])


lOMoARcPSD|34756506

Annexure – I
Micro-Project Proposal

CHAT BOT

1.0 Aim/ Benefits of the Micro-Project


This Micro-Project aims at:
1) Understanding basic Python concept.
2) Implementing Exceptional Handling.
3) Improving our Python Programming skills.
4) Implementing python learning in creating projects.

2.0 Course Outcomes Addressed


A: Display message on screen using Python script on IDE [ ]
B: Develop Python program to demonstrate use of operators [ ]
C: Perform operations on data structures in Python [✓]
D: Develop functions for given problem [✓]
E: Design classes for given problem [✓]
F: Handle Exceptions [✓]

3.0 Proposed Methodology


 The first step will be, finalizing the topic with our respective guide.
 The rough draft and logic will be discussed by all the four members.
 We will then make an algorithm and flowchart of the topic so that we could get a clear
idea.
 Function definitions that will be required in the project will be done by each member
individually.
 Coding of the program will be divided part by part.
 Then the output will be discussed with the respective guide.
 Printouts of the code and output will be taken.
 Then, rough draft of the project will be made.
 The final submission will be done.

1
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

4.0 Action Plan

SR. Planned Start Planned Name of Responsible


Details of activity
No. date Finish date Team Members

1 Finalization of Project Title and 08/04/2021 09/04/2021 All team members


Scope
2 Project Definition and design
12/04/2021 15/04/2021 All team members
structure

3 Design procedure (Algorithm / 16/04/2021 17/04/2021 All team members


Flowchart)
4 Coding 20/04/2021 23/04/2021 All team members

5 Coding 26/04/2021 04/05/2021 All team members

6 Editing and Testing of Program 08/05/2021 13/05/2021 All team members

7 Report writing 17/05/2021 21/05/2021 All team members

Demonstration of project and 27/05/2021 05/06/2021


8 All team members
final submission

5.0 Resources Required

Sr. No. Equipment Name with Broad Specification Remark if any

s1. Desktop pc – Windows 7 ✓

2. Editor used – Python IDLE ✓

3. Software – Python 3.4.2 ✓

Name of Team Members with Roll Nos.:


1. Amaan Patel - 05
2. Niyati Avhad - 06
3. Amaresh Baranwal - 07
4. Maithili Bhosale - 08

Mrs. Pratibha Pednekar (Course Teacher)

2
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Annexure – II

Micro-Project Report

CHAT BOT

1.0 Rationale
Python is a powerful programming language. It has efficient high-level data structures and a
simple but effective approach to object-oriented programming. Python code is simple, short,
readable, intuitive, and powerful, and thus it is effective for introducing computing and
problem solving to beginners. Its elegant syntax and dynamic typing, together with its
interpreted nature, make it an ideal language for scripting and rapid application development
in many areas on most platforms.

2.0 Aim of the Micro-Project


This Micro-Project aims at:
1) Understanding basic Python concept
2) Implementing Exceptional Handling
3) Implementing basic data structures like dictionary
4) Improving our Python Programming skills

3.0 Course Outcomes Addressed


a) Develop message on screen using Python script on IDE
b) Develop Python program to demonstrate use of operators
c) Perform operations on data structures in Python
d) Handle Exceptions

3
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

4.0 Literature Review


 Data Structures:
 Python has four basic inbuilt data structures namely:
 Lists: Lists in Python are one of the most versatile collection object types
available. Lists can be used for any type of object, from numbers and strings to
more lists.
 Dictionary: In python, dictionary is similar to hash or maps in other
languages. It consists of key value pairs. It is mutable and can contain mixed
types. A Dictionary is an unordered collection. Python dictionary are called
associative arrays hash tables in other languages. The keys in a dictionary
must be immutable objects like strings or numbers. They must also be unique
within a dictionary.
 Tuple: Python tuples work exactly like Python lists except they are
immutable, They are normally written inside parentheses to distinguish them
from lists (which use square brackets)
 Set: Sets are the unordered collection of unique objects.

 Exceptional handling:
 Even if a statement or expression is syntactically correct, it may cause an error when
an attempt is made to execute it. Errors detected during execution are called
exceptions
 These exceptions can be handled using the try statement
 Since the try block raises an error, the except block will be executed.

 User Defined Module:


 The user-defined module just written by the user at the time of program writing.
 Creation of User-defined module
To create a module just write a Python code in a file extension as.py:
Example:
def accept_int():
val=int(input(“Enter the integer number:”))
print(“The integer value is:”,val)

4
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

5.0 Actual Procedure Followed


 The first step was that we finalized our topic with our respective guide. We discussed the
topic and came to an agreement of making project on guessing the number game.
 We divided the project work equally among all the members of our group.
 The rough draft and logic was discussed by all the four members.
 We made the algorithm and flowchart of the topic so that we could get a clear idea.
 Function definitions that were required in the project was done by each member
individually.
 Coding of the program was divided part by part and was done by all the team members.
 Then the output was discussed with the respective guide who asked us to make some
modification in our project.
 After the modifications in the project were made, the printout of the code and output were
taken.
 The final submission was done.

Algorithm:

Step 1: Start
Step 2: Install Python Libraries i.e. Chatterbot, chatterbot-corpus, pyttsx3, SpeechRecognition

Step 3: Import all these Libraries

Step 4: Initialize chatterbot name


Step 5: Pass that variable to trainer variable.
Step 6: Create Function named speech_to_Text()
Step 6.1: Initialize Recognizer()
Step 6.2: With the help of Microphone() method, recognize speech and convert to text.
Step 7: Create Function named text_to_Speech():
Step 7.1: Adjust speech engine modules
Step 7.2: With the help of argument and parameter, convert text to speech.
Step 8: while True:
Step 8.1: Call speech_to_Text() function and store it in variable
Step 8.2: Pass that variable as argument to get_response( ) method and store it in another variable.
Step 8.3: Call text_to_Speech() function and pass response as argument.
Step 9: Stop

5
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Flowchart:

6
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Code:
import logging
import pyttsx3
import speech_recognition as sr
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer

logging.basicConfig(level=logging.CRITICAL)

chatbot = ChatBot('TalkingBot')

# if no update comment these 2 sentence


trainer = ChatterBotCorpusTrainer (chatbot)
trainer.train("chatterbot.corpus.english")

def speech_to_Text():
r = sr.Recognizer()

with sr.Microphone() as source:


print("Speak....")
text = r.listen(source)

try:
recognised_text = r.recognize_google(text)
print("You: ", recognised_text)
return recognised_text
except sr.UnknownValueError:
print("Unknown Error")
except sr.RequestError as e:
print("Request Error")

def text_to_Speech(res):
engine = pyttsx3.init()
rate = engine.getProperty('rate')
engine.setProperty('rate', 150)
engine.say(res)
engine.runAndWait()

# Calling function
while True:
st = speech_to_Text()
response = chatbot.get_response(st)

print("Bot: ", response)


text_to_Speech(response)

7
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

6.0 Actual Resources Used

Sr. No. Equipment Name with Broad Specification Remark if any

1. Desktop pc – Windows 7 ✓

2. Editor – Python IDE ✓

3. Software – Python 3.4.2 ✓

7.0 Outputs of the Micro-Projects

8
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

8.0 Skill Developed / learning out of this Micro-Project


The following skills were developed while performing and developing this micro project:
 Deigning: Designing of micro project with minimum required resources and at low cost.
 Teamwork: Learned to work in a team and boost individual confidence.
 Data Analysis: Interpretation of Data; Drawing and analysis of graphs
 Problem-solving: Developed good problem-solving habits.
 Technical writing: Preparing a report of the proposed plan and final report.
 Comprehended and applied different concepts in Python
 Understood the importance of time management

9.0 Application of this Micro-Project


The following are the applications of this micro project:
1. It can be used make Chat Bot for health care related Application.
2. It can be used for answer question and enquiries.
3. It can be used in Retail and e-commerce.
4. Can integrate with any website and mobile application.

9
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Annexure – III

Suggested Rubric for Assessment of Micro-Project


S. Characteristic to Poor Average Good Excellent
No. be assessed ( Marks 1 - 3 ) ( Marks 4 - 5 ) ( Marks 6 - 8 ) ( Marks 9- 10 )
Take care of
Relevance to the Relate to very Related to some Take care of at-
1 more than one
course few LOs Los least one CO
CO
At –least 7
Literature review Not more than At-least 5 About 10
relevant
2 /information two sources very relevant sources, relevant sources,
sources, most
collection old reference at least 2 latest most latest
latest
Completion of the
Completed less Completed 50 to Completed 60 to Completed more
3 Target as per
than 50% 60% 80% than 80 %
project proposal
Sufficient and
Sufficient and
appropriate
appropriate Enough data
Data neither enough data
Analysis of Data enough data collected and
organized nor generated but not
4 and representation generated which sufficient and
presented well organized and
is organized and presenting data.
not presented
well. but not used.
Well assembled Well assembled
and functioning with proper
Just assembled
Incomplete parts. But no functioning
Quality of and some codeis
5 Programming creativity in parts.. Creativity
Prototype/Model not functioning
code design and use in design and
well.
of graphics use of graphics
function function
Nearly sufficient Detailed, correct
Very short,
and correct and clear
Details about Very detailed,
details about description of
methods, and correct, clear
Report methods, and methods and
6 conclusions description of
Preparation conclusion. but Conclusions.
omitted, some methods, and
clarity is not Sufficient
details are conclusions.
there in Graphic
wrong presentation. Description.
Major Includes major
Includes major
information is information but Well organized,
information and
Presentation of not included, not well includes major
7 well organized
the micro project information is organized and information
but not
not well not presented ,well presented
presented well
organized. well
Replied to Replied
Could not reply
considerable properly to Replied most of
to considerable
8 Viva number of considerable the questions
number of
questions but not number of properly
question. very properly question.

11
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Annexure – IV

Micro Project Evaluation Sheet

Name of Student: Amaresh Deviprasad Baranwal


Enrollment No: 1800040245
Name of Program: CO6I Semester: 6th
Course Title: Programming with Python Course Code: 22616
Title of the Micro-Project: Chat Bot

Cos addressed by Micro Project: (Tick appropriate COs)


A: Display message on screen using Python script on IDE [ ]
B: Develop Python program to demonstrate use of operators [ ]
C: Perform operations on data structures in Python [✓]
D: Develop functions for given problem [✓]
E: Design classes for given problem [✓]
F: Handle Exceptions [✓]

Sr. Poor Average Good Excellent


Sub
Characteristic to be assessed ( Marks1- (Marks 4- (Marks ( Marks9-
No. Total
3) 5) 6-8) 10)

A. Process and Product Assessment (Convert Above Total marks out of 6 Marks)

1 Relevance to the course

2 Information Collection

3 Completion of the Target as per


project proposal

4 Analysis of Data and


representation

5 Quality of Prototype/Model

6 Report Preparation

B. Individual Presentation / Viva (Convert above total marks out of 4 marks)

7 Presentation

8 Defense

12
Downloaded by dream girl ([email protected])
lOMoARcPSD|34756506

Total
Roll Process and Product Assessment Individual Presentation / Viva
Marks
No. (6 Marks) (4 Marks)
10

07

Comments/Suggestions about team work/leadership/inter-personal communication (if any)


………………………………………………………………………………………………
……………………………………………………………………………………………..
……………………………………………………………………………………………..
……………………………………………………………………………………………..

Name and designation of the Teacher: Mrs. Pratibha Pednekar (Lecturer)

Dated Signature:

13

Downloaded by dream girl ([email protected])

You might also like