alchemist hour: sentiment analysis and personality insights
TRANSCRIPT
![Page 1: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/1.jpg)
AlchemyAPI – Sentiment Analysis and Personality Insights
![Page 2: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/2.jpg)
AlchemyAPI – Sentiment Analysis and Personality Insights
![Page 3: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/3.jpg)
The housekeeping items
#AlchemistHour
• Webinar slides, recording and Q&A will be emailed• Enter questions in chat on webinar panel • Or ask your questions on Twitter @alchemyapi
• Use #AlchemistHour
![Page 4: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/4.jpg)
What will be covered today?
#AlchemistHour
• Approaches to sentiment analysis• Watson Personality Insights: The Big 5• Sample calls• Parameter explanation
![Page 5: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/5.jpg)
• Document-level, entity-targeted, and keyword-targeted sentiment mining.• Understands negations, amplifiers, diminishers, typos, hashtags and slang.
• Examples:
– Overall Text Sentiment• So happy I found this pizza
– Targeted Sentiment• So happy I found this pizza, I really don't like hot dogs
Extract positive and negative opinions from any text.
#AlchemistHour
Sentiment Analysis
![Page 6: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/6.jpg)
Watson Personality Insights: The Big 5
#AlchemistHour
• Agreeableness• A person's tendency to be compassionate and cooperative toward others
• Conscientiousness• A person's tendency to act in an organized or thoughtful way
• Extraversion• A person's tendency to seek stimulation in the company of others
• Emotional Range• The extent to which a person's emotions are sensitive to the
individual's environment
• Openness• The extent to which a person is open to experiencing a variety of
activities
![Page 7: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/7.jpg)
Watson Personality Insights: The Big 5
#AlchemistHour
![Page 8: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/8.jpg)
Making Sentiment Calls - cURL
#AlchemistHour
curl 'http://access.alchemyapi.com/calls/text/TextGetTextSentiment?outputMode=json&text=That%20pizza%20was%20delicious&apikey=YOUR_API_KEY'
{ "status": "OK", "totalTransactions": "1", "language": "english", "docSentiment": { "score": "0.660833", "type": "positive" }}
![Page 9: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/9.jpg)
Sentiment Parameters
#AlchemistHour
• url – url of text to be analyzed
• only used with endpoints URLGetTextSentiment and URLGetTargetedSentiment
• text – text to be analyzed
• only used with endpoints TextGetTextSentiment and TextGetTargetedSentiment
• target – target phrase
• apikey – your API key
• outputMode –xml, json
• jsonp – desired JSONP callback (requires json outputMode)
• showSourceText – whether to include the original 'source text' the sentiment was extracted from
![Page 10: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/10.jpg)
Additional info for Sentiment Analysis
#AlchemistHour
• Maximum document size for HTML documents is 600kb. Remaining text after HTML cleaning must be less than 50kb.
• Sentiment analysis is supported for eight languages: English, Spanish, Italian, German, French, Portuguese, Swedish, and Russia
• If the sentiment target is not found, a "cannot-locate-keyphrase" error response will be returned
![Page 11: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/11.jpg)
Making Personality Insights Calls - cURL
#AlchemistHour
curl -v -X POST -d @personality.txt -u USERNAME:PASSWORD -H "Accept-Language: en" -H "Content-Type: text/plain" -H "Accept: application/json" "Content-Language: en" "https://gateway.watsonplatform.net/personality-insights/api/v2/profile"
{ "id": "Openness", "name": "Openness", "category": "personality", "percentage": 0.8925013538451143, }, { "id": "Conscientiousness", "name": "Conscientiousness", "category": "personality", "percentage": 0.7348076938514495, }, { "id": "Extraversion", "name": "Extraversion", "category": "personality", "percentage": 0.4771565706306179, }, { "id": "Agreeableness", "name": "Agreeableness", "category": "personality", "percentage": 0.4130282366306227, }, { "id": "Neuroticism", "name": "Emotional range", "category": "personality", "percentage": 0.09469501678631477, }
![Page 12: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/12.jpg)
Personality Insights Header Parameters
#AlchemistHour
• Content-Type – text/plain, text/html, application/json
• Accept – application/json, text/csv
• Accept-Language – en (english response only)
• Content-Language – en, es (english or spanish input)• include_raw - if true, will return a raw score for each
characteristic in addition to a normalized score
• headers – if true, column labels are returned with CSV
response
![Page 13: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/13.jpg)
Are you ready to get started?
#AlchemistHour
• Get an AlchemyAPI key and sign up on Bluemix
• Download the Alchemy and Watson SDKs• Check out the Getting Started Guides and
WDC Documentation for examples• Ask me questions!
![Page 14: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/14.jpg)
#AlchemistHour
Q&A
![Page 15: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/15.jpg)
• Look out for a follow up email with a copy of these slides, a recording of the webinar, Q&A recap, and additional resources
• View and share this presentation on SlideShare
• Follow us for more webinars
• The series continues bi-weekly on Wednesdays @ 12pm ET / 9am PT
• August 5 - Cognitive News
#AlchemistHour
What’s next?
![Page 16: Alchemist Hour: Sentiment Analysis and Personality Insights](https://reader031.vdocuments.site/reader031/viewer/2022032117/55cad455bb61ebbf438b4586/html5/thumbnails/16.jpg)
Contact us1-877-253-0308
Thank you for attending!
#AlchemistHour