{"id":1944,"date":"2022-03-09T22:40:13","date_gmt":"2022-03-09T22:40:13","guid":{"rendered":"https:\/\/salarydistribution.com\/machine-learning\/2022\/03\/09\/extract-granular-sentiment-in-text-with-amazon-comprehend-targeted-sentiment\/"},"modified":"2022-03-09T22:40:13","modified_gmt":"2022-03-09T22:40:13","slug":"extract-granular-sentiment-in-text-with-amazon-comprehend-targeted-sentiment","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2022\/03\/09\/extract-granular-sentiment-in-text-with-amazon-comprehend-targeted-sentiment\/","title":{"rendered":"Extract granular sentiment in text with Amazon Comprehend Targeted Sentiment"},"content":{"rendered":"<div id=\"\">\n<p><a href=\"https:\/\/aws.amazon.com\/comprehend\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon Comprehend<\/a> is a natural language processing (NLP) service that uses machine learning (ML) to discover insights from text. As a fully managed service, Amazon Comprehend requires no ML expertise and can scale to large volumes of data. Amazon Comprehend provides several different <a href=\"https:\/\/aws.amazon.com\/comprehend\/features\/\" target=\"_blank\" rel=\"noopener noreferrer\">APIs<\/a> to easily integrate NLP into your applications. You can simply call the APIs in your application and provide the location of the source document or text. The APIs output entities, key phrases, sentiment, document classification, and language in an easy-to-use format for your application or business.<\/p>\n<p>The sentiment analysis APIs provided by Amazon Comprehend help businesses determine the sentiment of a document. You can gauge the overall sentiment of a document as positive, negative, neutral, or mixed. However, to get the granularity of understanding the sentiment associated with specific products or brands, businesses have had to employ workarounds like chunking the text into logical blocks and inferring the sentiment expressed towards a specific product.<\/p>\n<p>To help simplify this process, starting today, Amazon Comprehend is launching the <a href=\"https:\/\/docs.aws.amazon.com\/comprehend\/latest\/dg\/how-targeted-sentiment.html\" target=\"_blank\" rel=\"noopener noreferrer\">Targeted Sentiment<\/a> feature for sentiment analysis. This provides the capability to identify groups of mentions (co-reference groups) corresponding to a single real-world entity or attribute, provide the sentiment associated with each entity mention, and provide the classification of the real-world entity based on a <a href=\"https:\/\/docs.aws.amazon.com\/comprehend\/latest\/dg\/how-targeted-sentiment.html#how-targeted-sentiment-entities\" target=\"_blank\" rel=\"noopener noreferrer\">pre-determined list of entities<\/a>.<\/p>\n<p>This post provides an overview of how you can get started with Amazon Comprehend targeted sentiment, demonstrates what you can do with the output, and walks through three common targeted sentiment use cases.<\/p>\n<h2>Solution overview<\/h2>\n<p>The following is an example of targeted sentiment:<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/08\/Screen-Shot-2022-03-08-at-9.37.08-AM.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-33903 size-full\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/08\/Screen-Shot-2022-03-08-at-9.37.08-AM.png\" alt=\"\" width=\"500\" height=\"255\"><\/a><\/p>\n<p>\u201cSpa\u201d is the primary entity, identified as type <code>facility<\/code>, and is mentioned two more times, referred to as the pronoun \u201cit.\u201d The Targeted Sentiment API provides the sentiment towards each entity. Positive sentiment is green, negative is red, \u00a0and neutral is blue. We can also determine how the sentiment towards the spa changes throughout the sentence. We dive deeper into the API later in the post.<\/p>\n<p>This capability opens up several different capabilities for businesses. Marketing teams can track popular sentiments toward their brands in social media over time. Ecommerce merchants can understand which specific attributes of their products were best- and worst-received by customers. Call center operators can use the feature to mine transcripts for escalation issues and to monitor customer experience. Restaurants, hotels, and other hospitality industry organizations can use the service to turn broad ratings categories into rich descriptions of good and bad customer experiences.<\/p>\n<h2>Targeted sentiment use cases<\/h2>\n<p>The Targeted Sentiment API in Amazon Comprehend takes text data such as social media posts, application reviews, and call center transcriptions as input. Then it analyzes the input using the power of NLP algorithms to extract entity-level sentiment automatically. An <em>entity<\/em> is a textual reference to the unique name of a real-world object, such as people, places, and commercial items, in addition to precise references to measures such as dates and quantities. For a full list of supported entities, refer to <a href=\"https:\/\/docs.aws.amazon.com\/comprehend\/latest\/dg\/how-targeted-sentiment.html#how-targeted-sentiment-entities\" target=\"_blank\" rel=\"noopener noreferrer\">Targeted Sentiment Entities<\/a>.<\/p>\n<p>We use the Targeted Sentiment API to enable the following use cases:<\/p>\n<ul>\n<li>A business can identify parts of the employee\/customer experience that are enjoyable and parts that may be improved.<\/li>\n<li>Contact centers and customer service teams can analyze on-call transcriptions or chat logs to identify agent training effectiveness, and conversation details such as specific reactions from a customer and phrases or words that were used to illicit that response.<\/li>\n<li>Product owners and UI\/UX developers can identify features of their product that users enjoy and parts that require improvement. This can support product roadmap discussions and prioritizations.<\/li>\n<\/ul>\n<p>The following diagram illustrates the targeted sentiment process:<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/07\/Picture1-1-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-33861 size-full\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/07\/Picture1-1-1.png\" alt=\"\" width=\"3208\" height=\"860\"><\/a><\/p>\n<p>In this post, we demonstrate this process using the following three sample reviews:<\/p>\n<ul>\n<li><strong>Sample 1: Business and product review<\/strong> \u2013 \u201cI really like how thick the jacket is. I wear a large jacket because I have broad shoulders and that\u2019s what I ordered and it fits perfectly there. I almost feel like it balloons out from the chest down. I thought I would use the strings in the bottom of the jacket to help close it and bring it in, but those don\u2019t work. The jacket feels very bulky.\u201d<\/li>\n<li><strong>Sample 2: Contact center transcription <\/strong>\u2013 \u201cHi there, there is a fraud block on my credit card, can you remove it for me. My credit card keeps getting flagged for fraud. It is quite annoying, every time I go to use it, I keep getting declined. I\u2019m going to cancel the card if this happens again.\u201d<\/li>\n<li><strong>Sample 3: Employer feedback survey <\/strong>\u2013 \u201cI\u2019m glad management is upskilling the team. But the instructor did not go over the basics well. Management should do more due diligence on everyone\u2019s skill level for future sessions.\u201d<\/li>\n<\/ul>\n<h2>Prepare the data<\/h2>\n<p>To get started, download the sample files containing the example text using the <a href=\"http:\/\/aws.amazon.com\/cli\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Command Line Interface<\/a> (AWS CLI) by running the following commands:<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-bash\">aws s3 cp s3:\/\/aws-blogs-artifacts-public\/artifacts\/ML-8148\/ts-sample-data.zip .<\/code><\/pre>\n<\/p><\/div>\n<p>Create an\u00a0<a class=\"c-link\" href=\"http:\/\/aws.amazon.com\/s3\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"http:\/\/aws.amazon.com\/s3\" data-sk=\"tooltip_parent\">Amazon Simple Storage Service<\/a>\u00a0(Amazon S3) bucket, unzip the folder and upload the folder containing the three sample files. Make sure you\u2019re using the same Region throughout.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image005.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33702\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image005.png\" alt=\"\" width=\"856\" height=\"800\"><\/a><\/p>\n<p>You can now access the three sample text files in your S3 bucket.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image007.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33703\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image007.png\" alt=\"\" width=\"1990\" height=\"691\"><\/a><\/p>\n<h2>Create a job in Amazon Comprehend<\/h2>\n<p>After you upload the files to your S3 bucket, complete the following steps:<\/p>\n<ol>\n<li>On the Amazon Comprehend console, choose <strong>Analysis jobs<\/strong> in the navigation pane.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image009.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33704\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image009.png\" alt=\"\" width=\"1269\" height=\"396\"><\/a><\/li>\n<li>Choose <strong>Create job<\/strong>.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image011.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33705\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image011.png\" alt=\"\" width=\"1429\" height=\"149\"><\/a><\/li>\n<li>For <strong>Name<\/strong>, enter a name for your job.<\/li>\n<li>For <strong>Analysis type<\/strong>, choose <strong>Targeted sentiment<\/strong>.<\/li>\n<li>Under <strong>Input data<\/strong>, enter the Amazon S3 location of the\u00a0<b data-stringify-type=\"bold\">ts-sample-data\u00a0<\/b>folder.<\/li>\n<li>For <strong>Input format<\/strong>, choose <strong>One document per file<\/strong>.<\/li>\n<\/ol>\n<p>You can change this configuration if your data is in a single file delimited by lines.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image013.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33707\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image013.png\" alt=\"\" width=\"835\" height=\"886\"><\/a><\/p>\n<ol start=\"7\">\n<li>Under <strong>Output location<\/strong>, enter the Amazon S3 location where you want to save the job output.<\/li>\n<li>Under <strong>Access permissions<\/strong>, for <strong>IAM role<\/strong>, choose an existing <a href=\"http:\/\/aws.amazon.com\/iam\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Identity and Access Management<\/a> (IAM) role or create one that has permissions to the S3 bucket.<\/li>\n<li>Leave the other options as default and choose <strong>Create job<\/strong>.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image015.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33708\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image015.png\" alt=\"\" width=\"843\" height=\"883\"><\/a><\/li>\n<\/ol>\n<p>After you start the job, you can review your job details. The total job runtime depends on the size of the input data.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image017.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33709\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image017.png\" alt=\"\" width=\"1025\" height=\"524\"><\/a><\/p>\n<ol start=\"10\">\n<li>When the job is complete, under <strong>Output<\/strong>, choose the link to the output data location.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image019.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33710\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image019.png\" alt=\"\" width=\"1013\" height=\"188\"><\/a><\/li>\n<\/ol>\n<p>Here you can find a compressed output file.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image021.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-33711 size-medium\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image021-300x259.png\" alt=\"\" width=\"300\" height=\"259\"><\/a><\/p>\n<ol start=\"11\">\n<li>Download and decompress the file.<\/li>\n<\/ol>\n<p>You can now inspect the output files for each sample text. Open the files in your preferred text editor to review the API response structure. We describe this in more detail in the next section.<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image023.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33712\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image023.png\" alt=\"\" width=\"1022\" height=\"308\"><\/a><\/p>\n<h2>API response structure<\/h2>\n<p>The Targeted Sentiment API provides a simple way to consume the output of your jobs. It provides a logical grouping of the entities (entity groups) detected, along with the sentiment for each entity. The following are some definitions of the fields that are in the response:<\/p>\n<ul>\n<li><strong>Entities <\/strong>\u2013 The significant parts of the document. For example, <code>Person<\/code>, <code>Place<\/code>, <code>Date<\/code>, <code>Food<\/code>, or <code>Taste<\/code>.<\/li>\n<li><strong>Mentions <\/strong>\u2013 The references or mentions of the entity in the document. These can be pronouns or common nouns such as \u201cit,\u201d \u201chim,\u201d \u201cbook,\u201d and so on. These are organized in order by location (offset) in the document.<\/li>\n<li><strong>DescriptiveMentionIndex <\/strong>\u2013 The index in <code>Mentions<\/code> that gives the best depiction of the entity group. For example, \u201cABC Hotel\u201d instead of \u201chotel,\u201d \u201cit,\u201d or other common noun mentions.<\/li>\n<li><strong>GroupScore <\/strong>\u2013 The confidence that all the entities mentioned in the group are related to the same entity (such as \u201cI,\u201d \u201cme,\u201d and \u201cmyself\u201d referring to one person).<\/li>\n<li><strong>Text <\/strong>\u2013 The text in the document that depicts the entity<\/li>\n<li><strong>Type <\/strong>\u2013 A description of what the entity depicts.<\/li>\n<li><strong>Score<\/strong> \u2013 The model confidence that this is a relevant entity.<\/li>\n<li><strong>MentionSentiment<\/strong> \u2013 The actual sentiment found for the mention.<\/li>\n<li><strong>Sentiment<\/strong> \u2013 The string value of <code>positive<\/code>, <code>neutral<\/code>, <code>negative<\/code>, or <code>mixed<\/code>.<\/li>\n<li><strong>SentimentScore<\/strong> \u2013 The model confidence for each possible sentiment.<\/li>\n<li><strong>BeginOffset<\/strong> \u2013 The offset into the document text where the mention begins.<\/li>\n<li><strong>EndOffset<\/strong>\u00a0\u2013 The offset into the document text where the mention ends.<\/li>\n<\/ul>\n<p>To demonstrate this visually, let\u2019s take the output of the third use case, the employer feedback survey, and walk through the entity groups that represent the employee completing the survey, management, and the instructor.<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/08\/Screen-Shot-2022-03-08-at-10.49.53-AM.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-33934 size-full\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/08\/Screen-Shot-2022-03-08-at-10.49.53-AM.png\" alt=\"\" width=\"2306\" height=\"950\"><\/a><\/p>\n<p>Let\u2019s first look at all the mentions of the co-reference entity group associated with \u201cI\u201d (the employee writing the response) and the location of the mention in the text. <code>DescriptiveMentionIndex<\/code> represents indexes of the entity mentions that best depict the co-reference entity group (in this case <code>I<\/code>):<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-bash\">{\n      \"DescriptiveMentionIndex\": [\n        0\n      ],\n      \"Mentions\": [\n        {\n          \"BeginOffset\": 0,\n          \"EndOffset\": 1,\n          \"Score\": 0.999997,\n          \"GroupScore\": 1,\n          \"Text\": \"I\",\n          \"Type\": \"PERSON\",\n          \"MentionSentiment\": {\n            \"Sentiment\": \"NEUTRAL\",\n            \"SentimentScore\": {\n              \"Mixed\": 0,\n              \"Negative\": 0,\n              \"Neutral\": 1,\n              \"Positive\": 0\n            }\n          }\n        }\n      ]\n    }<\/code><\/pre>\n<\/p><\/div>\n<p>The next group of entities provides all mentions of the co-reference entity group associated with management, along with its location in the text. <code>DescriptiveMentionIndex<\/code> represents indexes of the entity mentions that best depict the co-reference entity group (in this case <code>management<\/code>). Something to observe in this example is the sentiment shift towards management. You can use this data to infer what parts of management\u2019s actions were perceived as positive, and what parts were perceived as negative and therefore can be improved upon.<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-bash\">{\n      \"DescriptiveMentionIndex\": [\n        0,\n        1\n      ],\n      \"Mentions\": [\n        {\n          \"BeginOffset\": 9,\n          \"EndOffset\": 19,\n          \"Score\": 0.999984,\n          \"GroupScore\": 1,\n          \"Text\": \"management\",\n          \"Type\": \"ORGANIZATION\",\n          \"MentionSentiment\": {\n            \"Sentiment\": \"POSITIVE\",\n            \"SentimentScore\": {\n              \"Mixed\": 0,\n              \"Negative\": 0,\n              \"Neutral\": 0,\n              \"Positive\": 1\n            }\n          }\n        },\n        {\n          \"BeginOffset\": 103,\n          \"EndOffset\": 113,\n          \"Score\": 0.999998,\n          \"GroupScore\": 0.999896,\n          \"Text\": \"Management\",\n          \"Type\": \"ORGANIZATION\",\n          \"MentionSentiment\": {\n            \"Sentiment\": \"NEGATIVE\",\n            \"SentimentScore\": {\n              \"Mixed\": 0.000149,\n              \"Negative\": 0.990075,\n              \"Neutral\": 0.000001,\n              \"Positive\": 0.009775\n            }\n          }\n        }\n      ]\n    }<\/code><\/pre>\n<\/p><\/div>\n<p>To conclude, let\u2019s observe all mentions of the instructor and the location in the text. <code>DescriptiveMentionIndex<\/code> represents indexes of the entity mentions that best depict the co-reference entity group (in this case <code>instructor<\/code>):<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-bash\">{\n      \"DescriptiveMentionIndex\": [\n        0\n      ],\n      \"Mentions\": [\n        {\n          \"BeginOffset\": 52,\n          \"EndOffset\": 62,\n          \"Score\": 0.999996,\n          \"GroupScore\": 1,\n          \"Text\": \"instructor\",\n          \"Type\": \"PERSON\",\n          \"MentionSentiment\": {\n            \"Sentiment\": \"NEGATIVE\",\n            \"SentimentScore\": {\n              \"Mixed\": 0,\n              \"Negative\": 0.999997,\n              \"Neutral\": 0.000001,\n              \"Positive\": 0.000001\n            }\n          }\n        }\n      ]\n    }<\/code><\/pre>\n<\/p><\/div>\n<h2>Reference architecture<\/h2>\n<p>You can apply targeted sentiment to many scenarios and use cases to drive business value, such as the following:<\/p>\n<ul>\n<li>Determine efficacy of marketing campaigns and feature launches by detecting the entities and mentions that contain the most positive or negative feedback<\/li>\n<li>Query output to determine which entities and mentions relate to a corresponding entity (positive, negative, or neutral)<\/li>\n<li>Analyze sentiment across the customer interaction lifecycle in contact centers to demonstrate efficacy of process or training changes<\/li>\n<\/ul>\n<p>The following diagram depicts an end-to-end process:<br \/><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image028-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-33732\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/ML-8148-image028-1.png\" alt=\"\" width=\"3687\" height=\"1325\"><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>Understanding the interactions and feedback organizations receive from customers about their products and services remains crucial in developing better products and customer experiences. As such, more granular details are required to infer better outcomes.<\/p>\n<p>In this post, we provided some examples of how using these granular details can help organizations improve products, customer experiences, and training while also incentivizing and validating positive attributes. There are many use cases across industries where you can experiment with and gain value from targeted sentiment.<\/p>\n<p>We encourage you to try this new feature with your use cases. For more information and to get started, refer to <a href=\"https:\/\/docs.aws.amazon.com\/comprehend\/latest\/dg\/how-targeted-sentiment.html\" target=\"_blank\" rel=\"noopener noreferrer\">Targeted Sentiment<\/a>.<\/p>\n<hr>\n<h3>About the Authors<\/h3>\n<p><strong><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/01\/1622773633578-1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-30281 alignleft\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/01\/1622773633578-1.jpg\" alt=\"\" width=\"100\" height=\"100\"><\/a> Raj Pathak<\/strong> is a Solutions Architect and Technical advisor to Fortune 50 and Mid-Sized FSI (Banking, Insurance, Capital Markets) customers across Canada and the United States. Raj specializes in Machine Learning with applications in Document Extraction, Contact Center Transformation and Computer Vision.<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/Sanjeev-Pulapaka.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-33721 alignleft\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2022\/03\/03\/Sanjeev-Pulapaka.jpg\" alt=\"\" width=\"100\" height=\"133\"><\/a><strong>Sanjeev Pulapaka\u00a0<\/strong>is a Senior Solutions Architect in the U.S. Fed Civilian SA team at Amazon Web Services (AWS). He works closely with customers in building and architecting mission critical solutions. Sanjeev has extensive experience in leading, architecting and implementing high-impact technology solutions that address diverse business needs in multiple sectors including commercial, federal, state and local governments. He has an undergraduate degree in engineering from the Indian Institute of Technology and an MBA from the University of Notre Dame.<\/p>\n<p>       <!-- '\"` -->\n      <\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/aws.amazon.com\/blogs\/machine-learning\/extract-granular-sentiment-in-text-with-amazon-comprehend-targeted-sentiment\/<\/p>\n","protected":false},"author":0,"featured_media":1945,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1944"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=1944"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1944\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/1945"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=1944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=1944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=1944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}