AI Unit-3
AI Unit-3
UNIT
Natural Language
Processing
CONTENTS
Part-1 Speech Recognition ***'****' * * * ' * * ' * * * * ****" ... 3-2M to 3-4M
Part-4 Chatbots...
*************** ********** ******* .3-10M to 3-15M
PART-1
Speech Recognition.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
Que 3.2. What are the most commonly used algorithms for speech
recognition ?
Answer
1. Natural language processing (NLP):
NLP is not a specific algorithm used in speech recognition; it is the
area of artificial intelligence which focuses on the interaction
between humans and machines through speech and text.
i. Many mobile devices incorporate speech recognition into their
systems to conduct voice search (example : Siri) or provide more
accessibility around texting.
2 Hidden Markov models (HMIM)
i Hidden Markov Models build on the Markov chain model, which
stipulates that the probability of a given state hinges on the current
state, not its prior states.
. While a Markov chain model is useful for observable events, such
as text inputs, hidden Markov models allow us toincorporatehdden
events, such as part-of-speech tags, into a probabilistic model.
3-3 M (Sem-1 &
2
For Engineering
Artificial Intelligence
models
within speech reco
utilized a s sequence
words, syllables,
sentences o
They are
the sequence
the provided input, allowin.
ing it
I T h e s e labels
create a mapping with
label s e q u e n c e .
the most appropriate
deternmine
to
Neural networks
neural networks process trainine
algorithms,
For deep learning human brain throuu
interconnectivity ofthe
data bymimicking the
layers of nodes.
of inputs, weights,
a bias (or threshold) and
1. Each node is made up
an output.
exceeds a given threshold,
it "fires" or activates
111. Ifthatoutput value in the network.
data to the next layer
the node, passing
recognition?
Que 3.3. What are the applications of speech
Answer
1.
. Automotive: Speech recognizer improves driver safety by enabling
voice-activated navigation systems and search capabilities in car radios
2 Technology: Virtual assistants are inereasingly becoming integrated
within our daily lives, particularly on our mobile devices. We use voie
commands to access them through our smartphones, such as through
Google Assistant or Apple's Siri, for tasks, such as voice search, or
through our speakers, via Amazon's Alexa or Microsoft's Cortana, to
play music.
3. Healthcare : Doctors and nurses leverage dictation applications to
capture and log patient diagnoses and treatment notes.
4. Sales: It can call center transcribe thousands of phone calis
help a
between customers and agents to
identify common call patterns an
ISsues. Cognitive bots can also talk to
people via a webpage, answerlns
common queries and solving basic requests without needing to walt
a contact center
agent to be available. In both instances
recognition systems help reduce time to resolution for spee sues.
consumer ls
(Sem-1 & 2) Natural Language ProceAIng
4 M
Answer
3 Modeling:
models using a
technique aims to create speaker
The modeling recognition and
feature vector. Further, Speaker
speaker-specific
Speaker identification
are the parts of Modeling.
who is
identification technique identifies by itself,
. The speaker information integrated into a speech
on individual
speaking based
signal.
PART-2
Questions-Answers
Answer
Natural Language Processing (NLP) studies the problems inherent.
1
the processing and manipulation of natural language and to k
computer understand statements written in human language.
NLP can be defined as the automatic processing ol human language
2.
Natural language processing is a subfield of Al which deals with the
3
methods of communicating with a computer in one's own natural
language.
It is used for analyzing and representing naturally occurring texts at
4
one or more levels of linguistic analysis for the purpose of achieving
human-like language processing for a range of tasks or applications
Answer
by
ii. NLU helps computers understand and interpret human language
breaking down the elemental pieces of speech.
in real-time,
iV. While speech recognition captures spoken language
to
transcribes it, and returns text, NLU goes beyond recognition
determine a user's intent.
time they learn to
. In NLU, machine learning models improve over as
definitions,
recognize syntax, context, language patterns, unique
sentiment, and intent.
understanding ?
Answer
|PART-3
Natural Language Generation.
Questions-Answers
Long Answer Type and Medium Answer Type
Questions
MSem-1 & 2)
38 Natural Language Processing
Answer
Answer
generation are:
Typical stages of natural language
the main content to be represented
Content determination: Deciding
information to mention in the text.
in a sentence o r the
structure or organization of
ii. Document structuring : Deciding the
the conveyed information.
sentences together to improve
1. Aggregation Putting of similar
:
understanding and readability.
words that convey the meaning
Iv. Lexical choice: Using appropriate
clearly. such referral
V. generation : Creating
tererring expression particular object and region.
expressions that help in
identification of a
be correct a s
the text that should
R e a l i s a t i o n : Creating and optimizing
per the rules of grammar.
Artificial Intelligence For Engineering 3-9 M
(Sem-1& 2
Que 3.10. What are the three basic techniques for evaluating NLG
ystems ?
Answer
Answer
ii. Automaticsummarization:
When we access a specifie, important piece of inf
information overl mation from a
huge knowledge base;
1s relevant for summariei
a problem.
2. Automatic summarization
information.
mmarizing the meaning
of documents and
is helpful in understandine.
3 Automatic summarization emotio
collect
meanings inside the
information, such as in
collecting data ional
from
social media
3-10M (Sem-1& 2) Natural Language Processing
V. Question Answering:
1 Question-Answering GQA) is becoming popular due to applications
virtual assistants.
such as Siri, OK Google, chat boxes and
system capable of coherently answering
a
2 A QA application is a
human request.
PART-4
Chatbots.
Questions-Answers
Answer
Chatbots
agent is a service either
A Chatbot known as a conversational
a
that we interact via a chat
powered by rules or artificial intelligence
interiace.
period
Use machine learning and NLP to learn context, and continually
.
in the future.
get better at answering those questions
C. There are two main models for a chatbot
1. Retrieval-based model
This kind of chatbot uses a repository of predefined responses.
Answer
3.
Rules-based chatbot technology act based on clicks actions, such as
Yes" vs. "No", or by recognizing a particular keyword or group of
keywords.
B. AI Chatbots:
1
AI chatbots will automatically learn after an initial training period
by a bot developer.
A.I. chatbots use artificial intelligence & natural language processing
2
technology to understand sentences structure.
C. LiveChat:
1.
1 These bots are primarily
used by Sales & Sales Developmentteams
organizations, as live
2. They can also be used by Customer Support in real-
chat option to a n s w e r questions
chat is a m o r e simplistic
time.
acts as a window to
on your website
or product and
3 Live Chat sits
for your customer.
your team
to assigm real-time
Live chat software has s o m e routing capability
4
conversations, but overall it's pretty simple.
team is online, live chat
wants to talk and your
When someone
address that person's
someone from your team to help
connects
ISsue,
Answer
E n g i n e e r i n g
For
Intelligence
Artificial
underot.
m o t i o n a l l y I n t e l l i g e n t :
traits
and
stand
personalized
p e r s o n a l i t y
c u s t o m e r
to delive
infer i n t e r a c t i o n
can necessary.
chatbot an when
The tone
during
and live-agent
s e n t i m e n t
escalate
to a
or
ofdat
e x p e r i e n c e ,
process
vast
amounts
ata
Freet oExplore: and
c o n s u m e ,
issues quickly.
reach, c u s t o m e r
can
chatbot solve
The data to
relevant
to gather
Autonomous Reasoning: without human
an
reasoning
complex
can
perform
chatbot
The
1. infer solutiono
ns
intervention.
should be able to
chatbot
service
a
For example, histories.
case
relevant
based on
7. Pre-Trained:
brand-specific
or industry.
understand
pre-trained to
The chatbot is
knowledge
and terms.
specific customer requests of a
common
to resolve
. It's pre-configured
particular industry.
PART-5
Machine Translation.
Questions-Answers
What
Que 3.17.| What do you understand by machine translation ?
are various types of machine translation systems ?
Answer
Machine translation
Machine translation is the task of automatically converting source text
in one
language to text in another language.
2. In a machine translation
task, the input already consists of a
ofsymbols in some language, and the computer program mustsequence
convet
this into a
sequence of symbols in another
language.
1 6 M (Sem-1 & 2) Natural Language Processing
Types of Machine Translation Systems :
Bilingual MT System: Bilingual MT systems produce translations
between two particular languages.
Multilingual MT System : Multilingual MT systems produce
translations between any pair of languages. They may be either uni-
directional or bi-directional in nature
Answer
Interlingua
Analysis Generation
Source Target
Fig. 3.18.1.
approach
The systems that use Interlingua
2 Interlingua Approach : called Interlingua (IL) and
intermediate language
translate SL to a n understood
TL. The Interlingua approach can be
then translate IL to
with the of the following MT pyramid.
help
are involved with this approach:
Transfer Approach :
Three stages
3 converted to
texts are
source language (SL)
a In the first stage,
abstract SL-oriented representations
converted
are
representations
SL-oriented
b. In the second stage, TL-onented
representations
language
into equivalent target
is generated.
the final text
C. In the third stage.
Artificial Inte lligence For Engineering 3-17 M
(Sem-1& 2
Empirical MT Approach: This is an emerging approach for MT
Basically, it uses large amount of raw data in the form of parallel corpora
The raw data consists of the text and their translations. Analogy-based
example-based. memory-based machine translation techniques use
empirical MT approach.
Que 3.19.
Design the process of machine translation with the helo
of flowchart.
Answer
Process of machine translation with the help of the following flowchaart
Source text
De-formatting
Pre-editing
Morphological, syntactic,
semantic and contextual
analysis
Internal representation
of source language
Contextual, semantic
and syntactic generation
Re-formatting
Post editing
Target text