SlideShare a Scribd company logo
Sentiment Analysis
Presented By- Rebecca Williams
Overview:
1. Abstract
2. Introduction
3. What is Sentiment
Analysis ?
1. Applications & uses
2. Advantages
3. Step by Step process of SA
4. Simple Example using TextBlob
Abstract
● Triple talaq is also known as talaq-e-biddat instant divorce. It is a kind of Islamic divorce used by
Muslims in India. It allows Muslims man to divorce their wife legally by simply stating the word
‘Talaq' three times in any form which can be in any way (verbal, written, or in electronic form).
● Now a day, the huge amount of data is posted on daily basis on the social media platform. Twitter
is a well known social networking platform where the user can post their views, opinions, and
thoughts freely.
● The sentimental analysis is a process of understanding opinions, thoughts and feelings of people
about a given subject. This paper analyses tweets posted on Twitter on the subject Triple from the
year 2002 to the year 2019.
● We have transformed unstructured data into well-informed data for getting the insights of people.
● The main focus of the work is to analyze the feelings of people using two well-known API like
TextBlob, and SpaCy. These APIs are based on Lexicon approach.
● This paper predicts sentiment into three classes positive, negative and neutral.
Introduction
● In this paper, we are applying statistics, natural language processing (NLP), and machine learning
to identify, analyze and extract some important information from tweets.
● The main objective is to observe the reviewer’s feelings, expressions, thoughts or judgments about
Triple Talak.
● Sentiment Analysis can be done by either machine learning or lexicon-based approach. In this
paper, we have applied a Lexicon based approach.
● This is a feasible and practical approach which can analyze tweet text without training or using
machine learning.
● Lexicon is a collection of words or one can say it is like a dictionary in which words are arranged
alphabetically. This approach is subdivided into a dictionary-based approach and corpus-based
approach.
● Here we are using a corpus-based approach. Corpus is a large body of words or text which
formulate a set of conceptual rules that govern a natural language from texts in that language and
examine how that language relates to other languages.
What does Sentiment Analysis mean?
The process of computationally identifying and categorizing opinions
expressed in a piece of text, especially in order to determine whether the
writer's attitude towards a particular topic, product, etc. is positive,
negative, or neutral.
Why Sentiment Analysis?
Sentimental Analysis can used as follows:
● Social media monitoring
● Brand monitoring
● Voice of customer (VoC)
● Customer service
● Workforce analytics and voice of employee
● Product analytics
● Market research and analysis
Advantages
● Scalability:
Sentiment analysis allows to
process data at scale in a efficient
and cost-effective way.
● Real-time analysis:
A sentiment analysis system can
help you immediately identify
these kinds of situations and take
action.
● Consistent criteria:
By using a centralized sentiment
analysis system, companies can
apply the same criteria to all of
their data. This helps to reduce
errors and improve data
consistency.
What is the use of NLP in Sentiment analysis?
● Sentiment Analysis also known as Opinion Mining is a field within Natural Language
Processing (NLP) that builds systems that try to identify and extract opinions within text.
● A sentiment analysis system for text analysis combines natural language processing (NLP)
and machine learning techniques to assign weighted sentiment scores to the entities,
topics, themes and categories within a sentence or phrase.
● Natural Language Processing (NLP) is a branch of AI that helps computers to understand,
interpret and manipulate human language.
Sentimental Analysis : Step by
Step Process
Step 1: Tokenization
Tokenization is the process by which big
quantity of text is divided into smaller parts
called tokens.
Step 2: Cleaning the data
● Remove numbers
● Stemming/lemmatization
● Part of speech tagging
● Remove punctuation
● Lowercase
Step 3 : Removing the stop words
One of the major forms of pre-
processing is to filter out useless data. In
natural language processing, useless
words (data), are referred to as stop
words.
Step 4: Classification
● Rule-based systems that perform sentiment
analysis based on a set of manually crafted
rules.
● Automatic systems that rely on machine
learning techniques to learn from data.
● Hybrid systems that combine both rule
based and automatic approaches.
Step 5: Apply Supervised Algorithm for
Classification
Step 6: Calculation
How to classify Sentiment?
Machine Learning/Automatic
This approach, employes a machine-learning technique and diverse features to construct a classifier that
can identify text that expresses sentiment. Nowadays, deep-learning methods are popular because they
fit on data learning representations.
Lexicon-Based/Rule-based
This method uses a variety of words annotated by polarity score, to decide the general assessment score
of a given content. The strongest asset of this technique is that it does not require any training data,
while its weakest point is that a large number of words and expressions are not included in sentiment
lexicons.
Hybrid
The combination of machine learning and lexicon-based approaches to address Sentiment Analysis is
called Hybrid. Though not commonly used, this method usually produces more promising results than the
approaches mentioned above.
Algorithms used :
There are three machine learning classification algorithms that are predominantly used for sentiment analysis:
● Support Vector Machines (SVMs)
● Naive-bayes
● Decision Trees
Each has its own advantages and drawbacks; however, a few different studies have concluded that the Naive-Bayes
classifier is the more accurate of the three.
There are also two main algorithms used within a lexicon based approach:
● Corpus
● Dictionary
The most accurate and best approach is a combination of both. However, today we’ll go into one of the more widely
used machine learning algorithms which is the Naive-Bayes algorithm.
Let’s see a simple example :
What is TextBlob?
TextBlob is a python library and offers a simple API to access its methods and perform basic
NLP tasks.
The sentiment function of textblob returns two properties, polarity, and subjectivity.
Polarity is float which lies in the range of [-1,1] where 1 means positive statement and -1 means
a negative statement. Subjective sentences generally refer to personal opinion, emotion or
judgment whereas objective refers to factual information. Subjectivity is also a float which lies
in the range of [0,1].
Code example:-
from textblob import TextBlob
Feedback1 ="unbelievably disappointing"
Feedback2 ="Terrible pitching and awful
hitting led to another crushing loss."
Feedback3 ="this is the greatest screwball
comedy ever filmed"
Feedback4 ="It was pathetic.The worst
part about it was the boxing scenes."
blob1= TextBlob(Feedback1)
print(blob1.sentiment)
blob2= TextBlob(Feedback2)
print(blob2.sentiment)
blob3= TextBlob(Feedback3)
print(blob3.sentiment)
blob4= TextBlob(Feedback4)
print(blob4.sentiment)
Output
Sentiment(polarity=-0.6, subjectivity=0.7)
Sentiment(polarity=-0.5333333333333333, subjectivity=0.9666666666666667)
Sentiment(polarity=1.0, subjectivity=1.0)
Sentiment(polarity=-1.0, subjectivity=1.0)
“Just as knowledge makes human
intelligent, data makes software
intelligent.”
- Amarpreet Kalkat, Frrole
Any Questions???
Thank you

More Related Content

Similar to Sentiment Analysis using Machine Learning.pdf

A survey on sentiment analysis and opinion mining
A survey on sentiment analysis and opinion miningA survey on sentiment analysis and opinion mining
A survey on sentiment analysis and opinion mining
eSAT Journals
 
OPINION MINING AND ANALYSIS: A SURVEY
OPINION MINING AND ANALYSIS: A SURVEYOPINION MINING AND ANALYSIS: A SURVEY
OPINION MINING AND ANALYSIS: A SURVEY
ijnlc
 
J1803015357
J1803015357J1803015357
J1803015357
IOSR Journals
 
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
IRJET Journal
 
Dictionary Based Approach to Sentiment Analysis - A Review
Dictionary Based Approach to Sentiment Analysis - A ReviewDictionary Based Approach to Sentiment Analysis - A Review
Dictionary Based Approach to Sentiment Analysis - A Review
INFOGAIN PUBLICATION
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
A scalable, lexicon based technique for sentiment analysis
A scalable, lexicon based technique for sentiment analysisA scalable, lexicon based technique for sentiment analysis
A scalable, lexicon based technique for sentiment analysis
ijfcstjournal
 
SCTUR: A Sentiment Classification Technique for URDU
SCTUR: A Sentiment Classification Technique for URDUSCTUR: A Sentiment Classification Technique for URDU
SCTUR: A Sentiment Classification Technique for URDU
International Journal of Computer and Communication System Engineering
 
Sentimental Analysis - Naive Bayes Algorithm
Sentimental Analysis - Naive Bayes AlgorithmSentimental Analysis - Naive Bayes Algorithm
Sentimental Analysis - Naive Bayes Algorithm
Khushboo Gupta
 
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
IRJET Journal
 
L017358286
L017358286L017358286
L017358286
IOSR Journals
 
Sentiment Features based Analysis of Online Reviews
Sentiment Features based Analysis of Online ReviewsSentiment Features based Analysis of Online Reviews
Sentiment Features based Analysis of Online Reviews
iosrjce
 
An Overview of Natural Language Processing.pptx
An Overview of Natural Language Processing.pptxAn Overview of Natural Language Processing.pptx
An Overview of Natural Language Processing.pptx
Softxai
 
INFORMATION RETRIEVAL FROM TEXT
INFORMATION RETRIEVAL FROM TEXTINFORMATION RETRIEVAL FROM TEXT
INFORMATION RETRIEVAL FROM TEXT
ijcseit
 
A fuzzy logic based on sentiment
A fuzzy logic based on sentimentA fuzzy logic based on sentiment
A fuzzy logic based on sentiment
IJDKP
 
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEWSENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
Journal For Research
 
Sentiment Analysis in Hindi Language : A Survey
Sentiment Analysis in Hindi Language : A SurveySentiment Analysis in Hindi Language : A Survey
Sentiment Analysis in Hindi Language : A Survey
Editor IJMTER
 

Similar to Sentiment Analysis using Machine Learning.pdf (20)

A survey on sentiment analysis and opinion mining
A survey on sentiment analysis and opinion miningA survey on sentiment analysis and opinion mining
A survey on sentiment analysis and opinion mining
 
OPINION MINING AND ANALYSIS: A SURVEY
OPINION MINING AND ANALYSIS: A SURVEYOPINION MINING AND ANALYSIS: A SURVEY
OPINION MINING AND ANALYSIS: A SURVEY
 
J1803015357
J1803015357J1803015357
J1803015357
 
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
A Novel Voice Based Sentimental Analysis Technique to Mine the User Driven Re...
 
Dictionary Based Approach to Sentiment Analysis - A Review
Dictionary Based Approach to Sentiment Analysis - A ReviewDictionary Based Approach to Sentiment Analysis - A Review
Dictionary Based Approach to Sentiment Analysis - A Review
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
A scalable, lexicon based technique for sentiment analysis
A scalable, lexicon based technique for sentiment analysisA scalable, lexicon based technique for sentiment analysis
A scalable, lexicon based technique for sentiment analysis
 
SCTUR: A Sentiment Classification Technique for URDU
SCTUR: A Sentiment Classification Technique for URDUSCTUR: A Sentiment Classification Technique for URDU
SCTUR: A Sentiment Classification Technique for URDU
 
Unit 5f.pptx
Unit 5f.pptxUnit 5f.pptx
Unit 5f.pptx
 
Sentimental Analysis - Naive Bayes Algorithm
Sentimental Analysis - Naive Bayes AlgorithmSentimental Analysis - Naive Bayes Algorithm
Sentimental Analysis - Naive Bayes Algorithm
 
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
Combining Lexicon based and Machine Learning based Methods for Twitter Sentim...
 
L017358286
L017358286L017358286
L017358286
 
Sentiment Features based Analysis of Online Reviews
Sentiment Features based Analysis of Online ReviewsSentiment Features based Analysis of Online Reviews
Sentiment Features based Analysis of Online Reviews
 
An Overview of Natural Language Processing.pptx
An Overview of Natural Language Processing.pptxAn Overview of Natural Language Processing.pptx
An Overview of Natural Language Processing.pptx
 
INFORMATION RETRIEVAL FROM TEXT
INFORMATION RETRIEVAL FROM TEXTINFORMATION RETRIEVAL FROM TEXT
INFORMATION RETRIEVAL FROM TEXT
 
Anu paper(IJARCCE)
Anu paper(IJARCCE)Anu paper(IJARCCE)
Anu paper(IJARCCE)
 
A fuzzy logic based on sentiment
A fuzzy logic based on sentimentA fuzzy logic based on sentiment
A fuzzy logic based on sentiment
 
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEWSENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
 
Sentiment Analysis in Hindi Language : A Survey
Sentiment Analysis in Hindi Language : A SurveySentiment Analysis in Hindi Language : A Survey
Sentiment Analysis in Hindi Language : A Survey
 

Recently uploaded

Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 

Recently uploaded (20)

Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 

Sentiment Analysis using Machine Learning.pdf

  • 2. Overview: 1. Abstract 2. Introduction 3. What is Sentiment Analysis ? 1. Applications & uses 2. Advantages 3. Step by Step process of SA 4. Simple Example using TextBlob
  • 3. Abstract ● Triple talaq is also known as talaq-e-biddat instant divorce. It is a kind of Islamic divorce used by Muslims in India. It allows Muslims man to divorce their wife legally by simply stating the word ‘Talaq' three times in any form which can be in any way (verbal, written, or in electronic form). ● Now a day, the huge amount of data is posted on daily basis on the social media platform. Twitter is a well known social networking platform where the user can post their views, opinions, and thoughts freely. ● The sentimental analysis is a process of understanding opinions, thoughts and feelings of people about a given subject. This paper analyses tweets posted on Twitter on the subject Triple from the year 2002 to the year 2019. ● We have transformed unstructured data into well-informed data for getting the insights of people. ● The main focus of the work is to analyze the feelings of people using two well-known API like TextBlob, and SpaCy. These APIs are based on Lexicon approach. ● This paper predicts sentiment into three classes positive, negative and neutral.
  • 4. Introduction ● In this paper, we are applying statistics, natural language processing (NLP), and machine learning to identify, analyze and extract some important information from tweets. ● The main objective is to observe the reviewer’s feelings, expressions, thoughts or judgments about Triple Talak. ● Sentiment Analysis can be done by either machine learning or lexicon-based approach. In this paper, we have applied a Lexicon based approach. ● This is a feasible and practical approach which can analyze tweet text without training or using machine learning. ● Lexicon is a collection of words or one can say it is like a dictionary in which words are arranged alphabetically. This approach is subdivided into a dictionary-based approach and corpus-based approach. ● Here we are using a corpus-based approach. Corpus is a large body of words or text which formulate a set of conceptual rules that govern a natural language from texts in that language and examine how that language relates to other languages.
  • 5.
  • 6. What does Sentiment Analysis mean? The process of computationally identifying and categorizing opinions expressed in a piece of text, especially in order to determine whether the writer's attitude towards a particular topic, product, etc. is positive, negative, or neutral.
  • 8. Sentimental Analysis can used as follows: ● Social media monitoring ● Brand monitoring ● Voice of customer (VoC) ● Customer service ● Workforce analytics and voice of employee ● Product analytics ● Market research and analysis
  • 9. Advantages ● Scalability: Sentiment analysis allows to process data at scale in a efficient and cost-effective way. ● Real-time analysis: A sentiment analysis system can help you immediately identify these kinds of situations and take action. ● Consistent criteria: By using a centralized sentiment analysis system, companies can apply the same criteria to all of their data. This helps to reduce errors and improve data consistency.
  • 10. What is the use of NLP in Sentiment analysis? ● Sentiment Analysis also known as Opinion Mining is a field within Natural Language Processing (NLP) that builds systems that try to identify and extract opinions within text. ● A sentiment analysis system for text analysis combines natural language processing (NLP) and machine learning techniques to assign weighted sentiment scores to the entities, topics, themes and categories within a sentence or phrase. ● Natural Language Processing (NLP) is a branch of AI that helps computers to understand, interpret and manipulate human language.
  • 11. Sentimental Analysis : Step by Step Process
  • 12. Step 1: Tokenization Tokenization is the process by which big quantity of text is divided into smaller parts called tokens.
  • 13. Step 2: Cleaning the data ● Remove numbers ● Stemming/lemmatization ● Part of speech tagging ● Remove punctuation ● Lowercase
  • 14. Step 3 : Removing the stop words One of the major forms of pre- processing is to filter out useless data. In natural language processing, useless words (data), are referred to as stop words.
  • 15. Step 4: Classification ● Rule-based systems that perform sentiment analysis based on a set of manually crafted rules. ● Automatic systems that rely on machine learning techniques to learn from data. ● Hybrid systems that combine both rule based and automatic approaches.
  • 16. Step 5: Apply Supervised Algorithm for Classification
  • 18. How to classify Sentiment?
  • 19. Machine Learning/Automatic This approach, employes a machine-learning technique and diverse features to construct a classifier that can identify text that expresses sentiment. Nowadays, deep-learning methods are popular because they fit on data learning representations. Lexicon-Based/Rule-based This method uses a variety of words annotated by polarity score, to decide the general assessment score of a given content. The strongest asset of this technique is that it does not require any training data, while its weakest point is that a large number of words and expressions are not included in sentiment lexicons. Hybrid The combination of machine learning and lexicon-based approaches to address Sentiment Analysis is called Hybrid. Though not commonly used, this method usually produces more promising results than the approaches mentioned above.
  • 20. Algorithms used : There are three machine learning classification algorithms that are predominantly used for sentiment analysis: ● Support Vector Machines (SVMs) ● Naive-bayes ● Decision Trees Each has its own advantages and drawbacks; however, a few different studies have concluded that the Naive-Bayes classifier is the more accurate of the three. There are also two main algorithms used within a lexicon based approach: ● Corpus ● Dictionary The most accurate and best approach is a combination of both. However, today we’ll go into one of the more widely used machine learning algorithms which is the Naive-Bayes algorithm.
  • 21.
  • 22. Let’s see a simple example :
  • 23. What is TextBlob? TextBlob is a python library and offers a simple API to access its methods and perform basic NLP tasks. The sentiment function of textblob returns two properties, polarity, and subjectivity. Polarity is float which lies in the range of [-1,1] where 1 means positive statement and -1 means a negative statement. Subjective sentences generally refer to personal opinion, emotion or judgment whereas objective refers to factual information. Subjectivity is also a float which lies in the range of [0,1].
  • 24. Code example:- from textblob import TextBlob Feedback1 ="unbelievably disappointing" Feedback2 ="Terrible pitching and awful hitting led to another crushing loss." Feedback3 ="this is the greatest screwball comedy ever filmed" Feedback4 ="It was pathetic.The worst part about it was the boxing scenes." blob1= TextBlob(Feedback1) print(blob1.sentiment) blob2= TextBlob(Feedback2) print(blob2.sentiment) blob3= TextBlob(Feedback3) print(blob3.sentiment) blob4= TextBlob(Feedback4) print(blob4.sentiment)
  • 26. “Just as knowledge makes human intelligent, data makes software intelligent.” - Amarpreet Kalkat, Frrole