NLP Lecture Week 01 - 02
NLP Lecture Week 01 - 02
Natural Language
Processing
CSC 4106
GCR Code: s7lhsql
SLIDE 02
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Grading Policy
• Assignments 10%
• Quiz 10%
• Project 10%
• Midterm 30%
• Final Exam 40%
SLIDE 03
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Text & Reference Books
Required Textbook
• Natural Language Processing in Action: Understanding,
analyzing, and generating text with Python, Hobson Lane,
Hannes Hapke, Cole Howard Publication Date: April 2019
• Natural Language Processing with Python, Steven Bird, Ewan
Klein, and Edward Loper Publication Date: June 2009
SLIDE 04
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
What is Natural Language Processing?
SLIDE 05
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
What is NLP?
Natural Language Processing (NLP) is a subset of Artificial Intelligence
(AI) – specifically Machine Learning (ML) that allows computers and
machines to understand, interpret, manipulate, and communicate
human language.
SLIDE 06
interactions between computers and human (natural) languages.
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Applications of NLP
SLIDE 07
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
How NLP Works?
• The user must input a sentence into the Natural Language
Processing (NLP) system.
• The NLP system then breaks down the sentence into smaller
parts of words, called tokens, and converts audio to text.
• Then, the machine processes the text data and creates an audio
file based on the processed data.
• The machine responds with an audio file based on processed text
SLIDE 08
data.
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Approaches to Natural Language Processing
SLIDE 09
such as writing summaries or chatbot responses.
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Market Size & Growth
The Natural Language Processing (NLP) market is showing phenomenal
promise and is anticipated to be valued at around $156.80bn by the
year 2030. This growth is at an annual CAGR of 27.55%.
• Increased incorporation of AI in products and services
• The race to provide the best customer experience
• Explosion of digital data
• The availability of low-cost cloud-based solutions
• The adoption of the technologies across diverse industries including
SLIDE 10
healthcare, manufacturing, automotive and more
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP (Cont.)
SLIDE 11
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP (Cont.)
SLIDE 12
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP (Cont.)
SLIDE 13
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP (Cont.)
SLIDE 14
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP (Cont.)
SLIDE 15
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Benefits of NLP
SLIDE 16
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Challenges with NLP (Cont.)
Misspellings
Natural languages are full of misspellings, typos, and
inconsistencies in style. For example, the word “process” can be
spelled as either “process” or “processing.” The problem is
compounded when you add accents or other characters that are
not in your dictionary.
SLIDE 17
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Challenges with NLP (Cont.)
Language Differences
An English speaker might say, “I’m going to work tomorrow
morning,” while an Italian speaker would say, “Domani Mattina
vado al lavoro.” Even though these two sentences mean the same
thing, NLP won’t understand the latter unless you translate it into
English first.
SLIDE 18
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Challenges with NLP (Cont.)
Innate Biases
Natural processing languages are based on human logic and data
sets. In some situations, NLP systems may carry out the biases of
their programmers or the data sets they use. It can also sometimes
interpret the context differently due to innate biases, leading to
inaccurate results.
SLIDE 19
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Challenges with NLP (Cont.)
SLIDE 20
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Challenges with NLP
SLIDE 21
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Tasks (Cont.)
Speech Recognition
This involves converting voice or audio data into texts. This process
is crucial for any application of NLP that features voice command
options. Speech recognition addresses the diversity in
pronunciation, dialects, haste, slurring, loudness, tone and other
factors to decipher intended message.
SLIDE 22
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Tasks (Cont.)
Speech Tagging
Similar to how we were taught grammar basics in school, this
teaches machines to identify parts of speech in sentences such as
nouns, verbs, adjectives and more. This also teaches systems to
understand when a word is used as a verb and the same word is
used as a noun.
SLIDE 23
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Tasks (Cont.)
SLIDE 24
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Tasks
SLIDE 25
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Why Is NLP Important?
Computers are very basic. They do not understand human languages.
To enable machines to think and communicate as humans would do,
NLP is the key.
• Uncovering critical insights from in-house data
• Deploying automation to simplify workflows, communications, and processes
• Personalization and hyper-personalization of experiences
• Implementing accessibility features to include differently abled people into
computing ecosystems
• Fuelling innovation in niche domains such as clinical oncology, fleet
SLIDE 26
management in supply-chain, data-driven decision making in autonomous
cars and more
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
NLP Use Cases
• Intelligent document processing
• Sentiment Analysis
• Fraud detection
• Language detection
• Conversational AI / Chatbot for customer assistance
• Text summarization
• Text Translation / Machine Translation
• Question-Answering
• Social Media Monitoring
SLIDE 27
• Business Analytics
SLIDE 28
implement pharmacovigilance strategies and more
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Industries Leveraging NLP (Cont.)
Fintech
• Seamless document processing and onboarding
• Optimize risk management and fraud detection
• Assessment of creditworthiness of individuals for financing
• Personalization of financial products in terms of tenures and
premiums and more
SLIDE 29
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Industries Leveraging NLP (Cont.)
SLIDE 30
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Industries Leveraging NLP (Cont.)
Retail
• Precise recommendation engines
• Voice search optimization
• Location-based service suggestions
• Targeted advertising such as loyalty programs, first-time user
discounts and more
SLIDE 31
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)
Industries Leveraging NLP (Cont.)
Manufacturing
• Automated machine health monitoring and defect detection
• Real-time process analysis
• Optimizing delivery routes and schedules including fleet
management
• Better worker and workplace safety through predictive analytics
SLIDE 32
and more
Natural Language Processing (NLP) | MUHAMMAD ATIF SAEED (Lecturer)