synopsys 11
synopsys 11
synopsys 11
ChatBot
Bachelor of Technology
In
INFORMATION TECHNOLOGY
Submitted by
INFORMATION TECHNOLOGY
School of Computer Science & Information Technology
NOIDA INSTITUTE OF ENGINEERING AND TECHNOLOGY,
GREATER NOIDA
(An Autonomous Institute)
Affiliated to
DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY, LUCKNOW
Dec, 2024
1
ABSTRACT
4.1 Methodology 11
4.2 Tools Used 11
The program selects the closest matching response by searching for the closest
matching known statement that matches the input, it then chooses a response
from the selection of known responses to that statement.
Example :
bot.train([
'How are you?',
'I am good.',
'That is good to hear.',
'Thank you',
'You are welcome.',
])
2) STEPS FOR MODEL DEVELOPMENT-
The process of creating a chatbot follows a pattern similar to the development of a web
page or a mobile app. It can be divided into Design, Building, Analytics and Maintenance.
Design
The chatbot design is the process that defines the interaction between the user and the
chatbot. The chatbot designer will define the chatbot personality, the questions that will be
asked to the users, and the overall interaction. It can be viewed as a subset of the
conversational design. In order to speed up this process, designers can use dedicated
chatbot design tools that allow for immediate preview, team collaboration and video
export. An important part of the chatbot design is also centered around user testing. User
testing can be performed following the same principles that guide the user testing of
graphical interfaces.
Building
The process of building a chatbot can be divided into two main tasks: understanding the
user's intent and producing the correct answer. The first task involves understanding the
user input. In order to properly understand a user input in a free text form, a Natural
Language Processing Engine can be used. The second task may involve different approaches
depending on the type of the response that the chatbot will generate.
Analytics
The usage of the chatbot can be monitored in order to spot potential flaws or problems. It
can also provide useful insights that can improve the final user experience.
Maintenance
To keep chatbots up to speed with changing company products and services, traditional
chatbot development platforms require ongoing maintenance. This can either be in the
form of an ongoing service provider or for larger enterprises in the form of an in-house
chatbot training team. To eliminate these costs, some startups are experimenting
with Artificial Intelligence to develop self-learning chatbots, particularly in Customer
Service applications.
API's
There are lots of API's available for building your own chatbot like Wikipedia api which helps
us to get data from Wikipedia etc.
3) METHODOLOGY-
Start
Stop
Let’s say we want to scrape the New York Times’ Facebook page. We would send a request
to https://graph.facebook.com/v2.4/nytimes?access_token=XXXXX and we would get:
We just have to process each post. If you’re an avid Face book user, you know
that not all of these attributes are not guaranteed to exist. Status updates may
not have text or links. Since we’re making a spreadsheet with an enforced
schema, we need to validate that a field exists before attempting to process it.
Now we have a full plan for scraping, we query each page of Facebook Page
Statuses (100 statuses maximum per page), process all statuses on that page
and writing the output to a CSV file, and navigate to the next page, and repeat
until no more statuses left.
DATA FORMAT
When the bot is unable to find the matching statement in its data set it returns the first line
of data. This problem can be seen in the below two tests we performed. Even though we
add large amount of data whenever we run out of data we can go to internet or use the
Wikipedia api to get a part of data from Wikipedia as result on the asked question.
When there are lots of matching for the same word we can use the regression algorithm to generate
the output which has the maximum amount of hits in the past. We can also create a list of responses
for a particular question to keep the chat interesting and keep changing the common correct
answers.
Example : when user reply hello we can reply back with hi, hello, good morning etc and we can also
initiate further Reponses like how are you ? Or what can I help you with? Etc.
We have started collection data on different fields and have built a basic
sequence modeling chatbot in linux. We have also started designing a small social
networking site with limited features so as to show real time modification of
data and improved accuracy in generating results
We have a basic model developed and our applying algorithms on the model to
test the best algorithm. We have also starting planning to create our own social
media in php and directly read data from it and modify the data held previously.
We have plans to add speech recognition using google api for speech to text
conversion and will try to add it into our project
We are also trying to use more api like Wolfram Alpha to make our search results
come faster and complexity is reduced
We are also trying to add a data classifier into our project so that when we read
data we can solve the problems if they are related to maths instead of wasting
time to search the whole database.
8. REFERENCES