Applications of NLP to become a high earning ML Engineer.pdf

NandaKishoreMallapra1 18 views 26 slides Aug 02, 2024
Slide 1
Slide 1 of 26
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26

About This Presentation

NLP Applications


Slide Content

 
LearnTube|CareerNinja
Applications of NLP
Nanda Kishore Mallapragada

What is NLP

Applications of NLP
●Language Translation
●Next sentence prediction
●Sentiment Analysis
●Chatbot Q/A
●Grammar correction
●Voice monitoring devices -
Alexa, Google Assistant
●Classifying emails.
●Sentence Classification
●Named Entity Recognition
●Search Engines
●Time series forecasting
●OCR Applications.
●Document reading and
classification.
●Resume Shortlisting

Applications of NLP

Applications of NLP - Named Entity Recognition

Applications of NLP - Image Captioning

Prominent Use cases of NLP
●Customized Email Generation
●Routing the Leads
●Customers’ feedback analysis

Customized Email Generation
●Today, we understand the overall performance and effectiveness of a campaign/email.
However, attribution of campaign effectiveness & performance is not available at a digital asset
granularity.
●Marketing is unable to serve relevant content to end customers – do not have data on who
should be served what.
●To serve end customers with relevant and personalized content, it is important to understand
the customer’s interest/engagement not just with the holistic campaign, but also at the level of
each piece of content.

Customized Email Generation
Feature Extraction is done using
FaceNet (A pre-trained deep
convolutional network) It is a face
recognition system. It is a system that,
given a picture of a face, will extract
high-quality features from the face and
predict a 512-element vector
representation these features, called a
face embedding.
Lifestyle image
Products:
Inspiron 15 and
XPS Desktop
Woman
~28 yrs. oldAsian
Dominant Color
Code: ‘cebbac’
Keywords –
‘new computer
purchase today’,
‘exceptional
experience’, ‘Sleek
designs’,
‘sensational
performance’
Text is best
understood by
university
graduates.
Number of
words: 217
Reading
time: ~75
sec
Visual Features
Textual Features
. . .
Extraction of more textual features are
being explored e.g. capturing all large
bold sized text, which also make up the
headline in html file, subject statements
of campaign emails, CTA text etc.

Customized Email Generation
●Raw text Cleaning
●Normalizing Text
●Removing Stopwords
●Tokenization
●Stemming
●Lemmatization
●POS Tagging

Customized Email Generation
●Normalizing Text
●Text normalization is the process of transforming text into a single canonical form that it might not have had before.
●Example: INDIA is my Country – india is my country
●Tokenization
●Tokenization is the first step in NLP. It is the processing of splitting a string into small units or tokens which can
be used for further analysis.
●Example: INDIA is my Country – “INDIA”, “is”, “my”, “country”
●Removing Stopwords
●NLP libraries contain predefined stopwords like (the, to, of, was, a, an ….). These stopwords can be removed from a
sentence.

Customized Email Generation
●Stemming
●Stemming is the process of converting the tokens into their root word or their word stem.
●Example: the stem of the word eating, eaten, eats, etc. is eat.
●Lemmatization
● Lemmatization does morphological analysis of the word and returns the base word known as a lemma. What this means
is lemmatization makes use of the dictionary to identify the root word rather than just cutting off suffix and prefix.
●Example: going, went, gone – go (root word – lemma)
●POS (Parts of Speech) Tagging
●It is the process of mapping each word in a sentence to a particular part of speech (Noun, Verb, Adverb, Adjective,
etc.)
●Example: I(Pronoun) want (Verb) an (Determiner) early (Adjective) upgrade (Noun).

Customized Email Generation
●Keyword Extraction
●WordClouds
●ngrams
●Rake
●Spacy
●Yake

Customized Email Generation
WordClouds

Customized Email Generation
Unigrams

Customized Email Generation
Bigrams

Routing the Leads
•The goal is to categorize the comments received from Dell Forms into four classes using Machine Learning.
–Inbound Sales
–Small Business
–Support
–Spam
•The process flow of class identification



•We manually tagged ~5000 comments for Deep Learning (Bert, Roberta and Xlnet approaches) based
classification of “Sales” and “Support”.

Comments
Identify
“Spam”
Comments
and filter out
Rule
Based
Classify remaining
Comments to
“Sales” and
“Support”
DL methods
Rule
Based Classify “Sales”
Comments to “Small
Business” and
“Inbound”

Customer Feedback Analysis
●Sentiment Analysis
●Analyze the sentiment of the reviews and classify the sentence into 5 or 3 different sentiments –
●Positive
●Somewhat Positive
●Neutral
●Somewhat Negative
●Negative
●Feedback Classification
●Classify the review into different classes that gives understanding of what review is talking about.
●Delivery, Billing, Product Quality, Product Features, Technical Support, Service Support etc…

Customer Feedback Analysis
●How to perform text classification?
●RNNs (Recurrent Neural Networks)
●Transformer Based Networks – BERT, RoBerta, XLNet…
●Example of sentiment analysis:
○“The laptop is very good to handle. It boots up pretty fast, it has very good design”.
■Positive
○“The delivery was very late. The technical support guy couldn’t understand the problem that I am
facing. It is a pathetic experience with Dell.
■Negative
○“The laptop features are really great. Though the battery life can be improved. Although the laptop
is satisfactory.
■Somewhat Positive

Customer Feedback Analysis
●RNNs
●For understanding the context within multiple
sentences, the neural networks we design should
hold the dependencies and connections within the
sentences.
●For language translation or next word prediction we
need to have previous word’s details.
●Networks should have some sort of memory and we
call them as recurrent neural networks (RNNs).

Customer Feedback Analysis
●RNNs
●In the previous diagram, a chunk of neural network, A, looks at some input xₜ and outputs a value hₜ. A loop
allows information to be passed from one step of the network to the next.
●A recurrent neural network can be thought of as multiple copies of the same network, each passing a message to
a successor.

Customer Feedback Analysis

Customer Feedback Analysis
●Problems with long term dependencies:
○Sentence 1: The clouds in the ______ are beautiful.
○Sentence 2: I grew up in France during some blahblahblah… I speak fluent ____.
○Sentence 3: “Macbook Air has been a great piece of device for me. It has some really cool features that
makes it one of the lightest laptops. This laptop boots up very fast and Apple has done it again. Their
devices are always the best. “

40,000/-
Handson Project Links

●Twitter Sentiment Analysis:
https://www.analyticsvidhya.com/blog/2021/06/twitter-sentiment-analysis-a
-nlp-use-case-for-beginners/

●Named Entity Recognition:
https://www.analyticsvidhya.com/blog/2021/06/nlp-application-named-entit
y-recognition-ner-in-python-with-spacy/

●Creating Chatbot using python:
https://www.section.io/engineering-education/creating-chatbot-using-natu
ral-language-processing-in-python/

40,000/-
Q/A

40,000/-
Thank You
Tags