SlideShare a Scribd company logo
Sentiment Analysis
Techniques
Presented to: Prof. Dr. M.Abid Khan
Presented by: Asim Ullah Jan
Agenda
 Feature Selection Techniques
 PMI
 Chi-Square
 Association Rule Mining (Support, confidence, lift and Conviction)
 Latent Semantic Indexing
 TF-IDF
 Latent Dirichlet Allocation
 Classification Techniques
 Machine Learning
 Lexicon Based
Sentiment Analysis
Feature Extraction
 To recognize and classify significant vocabulary items in unrestricted natural
language texts.
 Let’s see an example…
Example of Vocabulary found
 Certificate of deposit
 CMOs
 Commercial bank
 Commercial paper
 Commercial Union
Assurance
 Commodity Futures
Trading Commission
 Consul Restaurant
 Convertible bond
 Credit facility
 Credit line
 Debt security
 Debtor country
 Detroit Edison
 Digital Equipment
 Dollars of debt
 End-March
 Enserch
 Equity warrant
 Eurodollar
 …
Extracted information categories
 Names of persons, organizations and places
 Multiword terms
 Abbreviations
 Relations
 Other useful stuff
Feature Selection
 Point-wise Mutual Information
 Latent Dirichlet Allocation
 Chi-Square
 TF-IDF
 Association Rule Mining
Point-wise Mutual Information
Agenda
 Definitions and Basics – Collocations + PMI
 Examples
 Problems
 PMI tasks
 PMI between 3 words
Collocations
 A collocation is an expression of two or more words that are some conventional
way of saying something
 Words together are more than the sum of their parts
 Usually cant be translated into another language word by word
Collocation Examples
 I’ll be in touch
 Light rain
 Hard-earned money
 Strong tea
 Fast food
Collocation
 Conditions for being a collocation
 Non-compositionality
 Non-substitutability
 Non-modifiability
Non-Compositionality
 The meaning of a collocation is not a compositions of the meaning of its parts
 Idioms
 “kick the bucket” mean “to die” not to literally kick buckets
 Non-idioms
 “Strong tea” does not mean the tea is physically strong
Non-Substitutability
 Cannot substitute synonyms for components of a collocation
 “White wine” cannot be replaces with “Yellow wine”
 “Fast food” and “Quick food”
Non-Modifiability
 Collocations cannot be freely modified with additional lexical material or
grammatical transformations
 “The cat has got your tongue” cannot be replaced with “the large, furry cat got
your tongue” or “the cat have your tongues”
Point-wise Mutual Information
 Information theory approach to find collocations
 Measure if how much one word tells us about the others. How much information we gain
 Can be negative or positive
 Given two events x’ and y’
 In this case x’ and y’ are occurrences of particular words
PMI code in Python
 import nltk
 from nltk.collocations import *
 bigram_measures = nltk.collocations.BigramAssocMeasures()
 trigram_measures = nltk.collocations.TrigramAssocMeasures()
 finder =
TrigramCollocationFinder.from_words(nltk.corpus.genesis.words('c:dd.txt'))
 print finder.nbest(trigram_measures.pmi, 20)
Output
Techniques used in opinion mining

More Related Content

Similar to Techniques used in opinion mining

How To Write An Essay From An Interview.pdf
How To Write An Essay From An Interview.pdfHow To Write An Essay From An Interview.pdf
How To Write An Essay From An Interview.pdf
Takyra Roberts
 
Business ontologies
Business ontologiesBusiness ontologies
Business ontologies
Mike Bennett
 
Sense-making
Sense-makingSense-making
Sense-making
Richard Veryard
 
PPT - Law Easy Writing Services PowerPoint Presentation, Free Download
PPT - Law Easy Writing Services PowerPoint Presentation, Free DownloadPPT - Law Easy Writing Services PowerPoint Presentation, Free Download
PPT - Law Easy Writing Services PowerPoint Presentation, Free Download
Sue Ganguli
 
The research project consists of an essay with the following topic.docx
The research project consists of an essay with the following topic.docxThe research project consists of an essay with the following topic.docx
The research project consists of an essay with the following topic.docx
oreo10
 
Plain English Overview
Plain English OverviewPlain English Overview
Plain English Overview
Michael Sadowski
 
Water Scarcity Essay
Water Scarcity EssayWater Scarcity Essay
Water Scarcity Essay
Robin King
 
Legal contract presentation
Legal contract presentationLegal contract presentation
Legal contract presentation
guestfae7fe
 
Introduction To Controlled Vocabularies
Introduction To Controlled VocabulariesIntroduction To Controlled Vocabularies
Introduction To Controlled Vocabularies
Fred Leise
 
How Change Happens Webinar 08 June
How Change Happens Webinar 08 JuneHow Change Happens Webinar 08 June
How Change Happens Webinar 08 June
Jill Hinson
 
How Change Happens Webinar 08 June
How Change Happens Webinar 08 JuneHow Change Happens Webinar 08 June
How Change Happens Webinar 08 June
Jill Hinson
 
Modern Europe Essay Topics. Online assignment writing service.
Modern Europe Essay Topics. Online assignment writing service.Modern Europe Essay Topics. Online assignment writing service.
Modern Europe Essay Topics. Online assignment writing service.
Kari Lowry
 
Persuasive Writing Strong Work Sample By Angie Bra
Persuasive Writing Strong Work Sample By Angie BraPersuasive Writing Strong Work Sample By Angie Bra
Persuasive Writing Strong Work Sample By Angie Bra
April Ford
 
The cognitive FSI - UBS Conference v1.0
The cognitive FSI - UBS Conference v1.0The cognitive FSI - UBS Conference v1.0
The cognitive FSI - UBS Conference v1.0
Pawel Stefanski
 
What Business Innovators Need to Know about Content Analytics
What Business Innovators Need to Know about Content AnalyticsWhat Business Innovators Need to Know about Content Analytics
What Business Innovators Need to Know about Content Analytics
Seth Grimes
 
Making light work of data- improving the UX of data rich interfaces- UX Austr...
Making light work of data- improving the UX of data rich interfaces- UX Austr...Making light work of data- improving the UX of data rich interfaces- UX Austr...
Making light work of data- improving the UX of data rich interfaces- UX Austr...
Stephen Hall
 
Harvard Referencing Essay Example.pdf
Harvard Referencing Essay Example.pdfHarvard Referencing Essay Example.pdf
Harvard Referencing Essay Example.pdf
Kimberly Walters
 
Definition Essay Family.pdf
Definition Essay Family.pdfDefinition Essay Family.pdf
Definition Essay Family.pdf
Kristen Marie
 
Stem Cell Research Essay
Stem Cell Research EssayStem Cell Research Essay
Stem Cell Research Essay
Mandy Montandon
 
College Essay Topic B Examples
College Essay Topic B ExamplesCollege Essay Topic B Examples
College Essay Topic B Examples
Crystal Parker
 

Similar to Techniques used in opinion mining (20)

How To Write An Essay From An Interview.pdf
How To Write An Essay From An Interview.pdfHow To Write An Essay From An Interview.pdf
How To Write An Essay From An Interview.pdf
 
Business ontologies
Business ontologiesBusiness ontologies
Business ontologies
 
Sense-making
Sense-makingSense-making
Sense-making
 
PPT - Law Easy Writing Services PowerPoint Presentation, Free Download
PPT - Law Easy Writing Services PowerPoint Presentation, Free DownloadPPT - Law Easy Writing Services PowerPoint Presentation, Free Download
PPT - Law Easy Writing Services PowerPoint Presentation, Free Download
 
The research project consists of an essay with the following topic.docx
The research project consists of an essay with the following topic.docxThe research project consists of an essay with the following topic.docx
The research project consists of an essay with the following topic.docx
 
Plain English Overview
Plain English OverviewPlain English Overview
Plain English Overview
 
Water Scarcity Essay
Water Scarcity EssayWater Scarcity Essay
Water Scarcity Essay
 
Legal contract presentation
Legal contract presentationLegal contract presentation
Legal contract presentation
 
Introduction To Controlled Vocabularies
Introduction To Controlled VocabulariesIntroduction To Controlled Vocabularies
Introduction To Controlled Vocabularies
 
How Change Happens Webinar 08 June
How Change Happens Webinar 08 JuneHow Change Happens Webinar 08 June
How Change Happens Webinar 08 June
 
How Change Happens Webinar 08 June
How Change Happens Webinar 08 JuneHow Change Happens Webinar 08 June
How Change Happens Webinar 08 June
 
Modern Europe Essay Topics. Online assignment writing service.
Modern Europe Essay Topics. Online assignment writing service.Modern Europe Essay Topics. Online assignment writing service.
Modern Europe Essay Topics. Online assignment writing service.
 
Persuasive Writing Strong Work Sample By Angie Bra
Persuasive Writing Strong Work Sample By Angie BraPersuasive Writing Strong Work Sample By Angie Bra
Persuasive Writing Strong Work Sample By Angie Bra
 
The cognitive FSI - UBS Conference v1.0
The cognitive FSI - UBS Conference v1.0The cognitive FSI - UBS Conference v1.0
The cognitive FSI - UBS Conference v1.0
 
What Business Innovators Need to Know about Content Analytics
What Business Innovators Need to Know about Content AnalyticsWhat Business Innovators Need to Know about Content Analytics
What Business Innovators Need to Know about Content Analytics
 
Making light work of data- improving the UX of data rich interfaces- UX Austr...
Making light work of data- improving the UX of data rich interfaces- UX Austr...Making light work of data- improving the UX of data rich interfaces- UX Austr...
Making light work of data- improving the UX of data rich interfaces- UX Austr...
 
Harvard Referencing Essay Example.pdf
Harvard Referencing Essay Example.pdfHarvard Referencing Essay Example.pdf
Harvard Referencing Essay Example.pdf
 
Definition Essay Family.pdf
Definition Essay Family.pdfDefinition Essay Family.pdf
Definition Essay Family.pdf
 
Stem Cell Research Essay
Stem Cell Research EssayStem Cell Research Essay
Stem Cell Research Essay
 
College Essay Topic B Examples
College Essay Topic B ExamplesCollege Essay Topic B Examples
College Essay Topic B Examples
 

Recently uploaded

Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your DoorAhmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
Russian Escorts in Delhi 9711199171 with low rate Book online
 
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdfreading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
perranet1
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
uevausa
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
Vietnam Cotton & Spinning Association
 
Health care analysis using sentimental analysis
Health care analysis using sentimental analysisHealth care analysis using sentimental analysis
Health care analysis using sentimental analysis
krishnasrigannavarap
 
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Do People Really Know Their Fertility Intentions?  Correspondence between Sel...Do People Really Know Their Fertility Intentions?  Correspondence between Sel...
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Xiao Xu
 
Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
blueshagoo1
 
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
nyvan3
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
oaxefes
 
SAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content DocumentSAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content Document
newdirectionconsulta
 
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
PsychoTech Services
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
osoyvvf
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
hiju9823
 
Drownings spike from May to August in children
Drownings spike from May to August in childrenDrownings spike from May to August in children
Drownings spike from May to August in children
Bisnar Chase Personal Injury Attorneys
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
Timothy Spann
 
Salesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - CanariasSalesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - Canarias
davidpietrzykowski1
 
CAP Excel Formulas & Functions July - Copy (4).pdf
CAP Excel Formulas & Functions July - Copy (4).pdfCAP Excel Formulas & Functions July - Copy (4).pdf
CAP Excel Formulas & Functions July - Copy (4).pdf
frp60658
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
GeorgiiSteshenko
 
一比一原版悉尼大学毕业证如何办理
一比一原版悉尼大学毕业证如何办理一比一原版悉尼大学毕业证如何办理
一比一原版悉尼大学毕业证如何办理
keesa2
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
ywqeos
 

Recently uploaded (20)

Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your DoorAhmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
Ahmedabad Call Girls 7339748667 With Free Home Delivery At Your Door
 
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdfreading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics May 2024
 
Health care analysis using sentimental analysis
Health care analysis using sentimental analysisHealth care analysis using sentimental analysis
Health care analysis using sentimental analysis
 
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Do People Really Know Their Fertility Intentions?  Correspondence between Sel...Do People Really Know Their Fertility Intentions?  Correspondence between Sel...
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
 
Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
 
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
 
SAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content DocumentSAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content Document
 
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
Interview Methods - Marital and Family Therapy and Counselling - Psychology S...
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
 
Drownings spike from May to August in children
Drownings spike from May to August in childrenDrownings spike from May to August in children
Drownings spike from May to August in children
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
 
Salesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - CanariasSalesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - Canarias
 
CAP Excel Formulas & Functions July - Copy (4).pdf
CAP Excel Formulas & Functions July - Copy (4).pdfCAP Excel Formulas & Functions July - Copy (4).pdf
CAP Excel Formulas & Functions July - Copy (4).pdf
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
 
一比一原版悉尼大学毕业证如何办理
一比一原版悉尼大学毕业证如何办理一比一原版悉尼大学毕业证如何办理
一比一原版悉尼大学毕业证如何办理
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
 

Techniques used in opinion mining

  • 1. Sentiment Analysis Techniques Presented to: Prof. Dr. M.Abid Khan Presented by: Asim Ullah Jan
  • 2. Agenda  Feature Selection Techniques  PMI  Chi-Square  Association Rule Mining (Support, confidence, lift and Conviction)  Latent Semantic Indexing  TF-IDF  Latent Dirichlet Allocation  Classification Techniques  Machine Learning  Lexicon Based
  • 4. Feature Extraction  To recognize and classify significant vocabulary items in unrestricted natural language texts.  Let’s see an example…
  • 5. Example of Vocabulary found  Certificate of deposit  CMOs  Commercial bank  Commercial paper  Commercial Union Assurance  Commodity Futures Trading Commission  Consul Restaurant  Convertible bond  Credit facility  Credit line  Debt security  Debtor country  Detroit Edison  Digital Equipment  Dollars of debt  End-March  Enserch  Equity warrant  Eurodollar  …
  • 6. Extracted information categories  Names of persons, organizations and places  Multiword terms  Abbreviations  Relations  Other useful stuff
  • 7. Feature Selection  Point-wise Mutual Information  Latent Dirichlet Allocation  Chi-Square  TF-IDF  Association Rule Mining
  • 8. Point-wise Mutual Information Agenda  Definitions and Basics – Collocations + PMI  Examples  Problems  PMI tasks  PMI between 3 words
  • 9. Collocations  A collocation is an expression of two or more words that are some conventional way of saying something  Words together are more than the sum of their parts  Usually cant be translated into another language word by word
  • 10. Collocation Examples  I’ll be in touch  Light rain  Hard-earned money  Strong tea  Fast food
  • 11. Collocation  Conditions for being a collocation  Non-compositionality  Non-substitutability  Non-modifiability
  • 12. Non-Compositionality  The meaning of a collocation is not a compositions of the meaning of its parts  Idioms  “kick the bucket” mean “to die” not to literally kick buckets  Non-idioms  “Strong tea” does not mean the tea is physically strong
  • 13. Non-Substitutability  Cannot substitute synonyms for components of a collocation  “White wine” cannot be replaces with “Yellow wine”  “Fast food” and “Quick food”
  • 14. Non-Modifiability  Collocations cannot be freely modified with additional lexical material or grammatical transformations  “The cat has got your tongue” cannot be replaced with “the large, furry cat got your tongue” or “the cat have your tongues”
  • 15. Point-wise Mutual Information  Information theory approach to find collocations  Measure if how much one word tells us about the others. How much information we gain  Can be negative or positive  Given two events x’ and y’  In this case x’ and y’ are occurrences of particular words
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. PMI code in Python  import nltk  from nltk.collocations import *  bigram_measures = nltk.collocations.BigramAssocMeasures()  trigram_measures = nltk.collocations.TrigramAssocMeasures()  finder = TrigramCollocationFinder.from_words(nltk.corpus.genesis.words('c:dd.txt'))  print finder.nbest(trigram_measures.pmi, 20)