{"id":486,"date":"2021-11-10T09:18:00","date_gmt":"2021-11-10T09:18:00","guid":{"rendered":"http:\/\/18.141.20.153\/?p=486"},"modified":"2023-04-28T12:40:52","modified_gmt":"2023-04-28T12:40:52","slug":"how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1","status":"publish","type":"post","link":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/","title":{"rendered":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">7<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/_3Gy24YpquwhwosVtpI7lNXkpH51CJYjmkBInVfxWcb6EduvoZwRFtCfLGvIg-cy-QMTSn0oIjJOexmrMlLQwKKEty_kwJk_tyjm8w8eAuOJM-WIcAjyuTlV5l9l6N8kbvIp7KQL\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">When we are asking Siri &#8211; \u201cHey Siri, where is the nearest grocery store?\u201d or telling Alexa &#8211; \u201cAlexa, can you play my workout music?\u201d, we are actually talking to machines! These virtual assistants are examples of machines that understand human languages and respond!! Sounds interesting right? Now you must be keen to know how this is possible and which technologies are working behind it.\u00a0 The answer is &#8211; AI and NLP. NLP understands and translates human language into numbers, making it easy for machines to understand. In this blog we are going to discuss NLP and one of the best NLP services &#8211; Amazon Comprehend, how it works, benefits, use cases, features, pricing, etc.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">To see the full implementation of how to configure Amazon Comprehend with AWS Lambda and Amazon Lex for sentiment analysis to create interactive, efficient, and helpful Amazon Lex bots, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/\">refer to Part 2 of the blog here<\/a>.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we will cover:<\/p>\n\n\n\n<ul><li>What is Natural Language Processing (NLP)?<\/li><li>What is Amazon Comprehend?<\/li><li>How does it work?<\/li><li>Who can use Amazon Comprehend?<\/li><li>Benefits of Amazon Comprehend<\/li><li>Common use cases of Amazon Comprehend<\/li><li>Features of Amazon Comprehend<\/li><li>Pricing<\/li><li>Companies using Amazon Comprehend<\/li><li>Conclusion<\/li><\/ul>\n\n\n\n<h2>What is Natural Language Processing?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Artificial intelligence (AI), Machine Learning(ML), and Natural Language Processing (NLP) are buzzwords and are sometimes used interchangeably! They have a major impact on countless functions across numerous industries.\u00a0<\/p>\n\n\n\n<p class=\"has-text-align-justify\">NLP is an area of artificial intelligence that allows computers to interpret human language.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/SH77WpvT5Kc2cB7IGJSO2Xb77apPxumG-knmtgO6ceefW4wI0XIAmq8CYKyasVjkinjgesmamyM1vi33nKZHlK5IDRIHxgURs3I47HJLuMzNyIsUz5L9CeptmG9-XLILYcvLGxwS\" alt=\"Amazon Comprehend\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Some well-known applications of NLP are virtual assistants like Siri &amp; Alexa, chatbots, etc. There are many other apps that you use frequently, where you\u2019ve probably encountered NLP without even noticing. Some examples like Gmail offering to translate a mail written in a different language,\u00a0text recommendations when writing an email, offering to translate a Facebook post written in a different language, or filtering unwanted promotional emails into your spam folder.\u00a0\u00a0<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Human language is extremely diverse, ambiguous, and complex. The goal of NLP is to make human language easy for machines to understand.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Now the question is how does NLP work? First, it applies linguistics to analyze the grammatical structure and the meaning of words, then it uses algorithms to build intelligent systems capable of performing different tasks.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/HmoxlXm64NfAWw0sTEKzttTcTmoGvjEW2zXhKe2GQbtx8WlIxyVP9IiroYsN5eul_aC6vrcWZcIy2vLG39S9TXWbyvSoxVzTUesrD-9vokk3TjbPeMB67IVbmdJXCXuxS5LNBIDI\" alt=\"Amazon Comprehend\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Natural language processing(NLP) is a revolutionary new solution that is helping to enhance insights and get even more visibility into all facets of customer-facing operations than ever before. NLP utilizes AI and machine learning to extract meaning from text. Natural language processing can analyze, extract meaning from, and determine actionable insights from the following in text.\u00a0<\/p>\n\n\n\n<h2>NLP Techniques&nbsp;<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Natural Language Processing (NLP) applies the following&nbsp; two techniques to help computers understand text:<\/p>\n\n\n\n<ul><li>Syntax analysis: NLP uses grammatical rules to determine a language&#8217;s meaning. Word segmentation, sentence breaking, morphological segmentation, and stemming are examples of NLP syntax approaches that are commonly used.<\/li><li>Semantics analysis: Using algorithms to grasp the content and structure of phrases, NLP can also determine meaning and context from language. Word sense disambiguation, named entity identification, and natural language production are all examples of semantics approaches used in NLP.<\/li><\/ul>\n\n\n\n<h2>What is Amazon Comprehend?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\"><a href=\"https:\/\/aws.amazon.com\/comprehend\/\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon Comprehend<\/a> is a natural language processing (NLP) service that uses machine learning to find insights and relationships in text and in unstructured data. In real-time, you can automatically and accurately detect customer sentiment in your content. It has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine Learning experience. Comprehend is fully managed, so you can get up and running quickly, without having to train models from scratch. Start processing millions of documents in minutes by leveraging the power of machine learning.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/pNEofI4mA4etreWGWsqdfrDdR1jxXSPfhxDrklhxYleTesUpKmmBWfB5Sa2Bo3ZoNdOJHkWZDd7jFZpkF5jJrDJ6Z1mzncrNRDAaNL9m4lJlhXy1wMv2WVrFj_8piEB-TycFpX7O\" alt=\"What is Amazon Comprehend?\"\/><\/figure>\n\n\n\n<h2>How does it work?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Amazon Comprehend is called on a synchronous basis to extract key phrases in the following steps<strong>:<\/strong><\/p>\n\n\n\n<ul><li>The incoming text file uploaded to the NLP\/Textract S3 bucket invokes the Sync Comprehend Processor Lambda function.<\/li><\/ul>\n\n\n\n<ul><li>The function feeds the incoming file to Amazon Comprehend for processing.<\/li><\/ul>\n\n\n\n<ul><li>The results from Amazon Comprehend, in JSON format, are deposited in the NLP\/JSON S3 bucket.<\/li><\/ul>\n\n\n\n<ul><li>The results from Amazon Comprehend are sent to Amazon ES, the service we incorporate as our document search engine.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/zRHT1-1mn3pSApcw46SB0xCChhICUN4czGuxJeIosuLb2pTBDAtgztNG-qEPtRdS5zKbiULZMTrBpdoIZQWep7IAs5ro3Fg-tUbxCZjUD9jO9ZdWZ3T9LA5bI6fJWMfm9nb--x9T\" alt=\"Amazon Comprehend\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">All steps are registered in metadata services. The red dotted lines in the diagram represent the metadata asynchronous API calls.<\/p>\n\n\n\n<h2>Who can use Amazon Comprehend?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">You don\u2019t need to have natural language processing (NLP) expertise to use Amazon Comprehend. You only need to call Amazon Comprehend API, and the service will handle the machine learning required to extract the relevant data from the text.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/nFvZbfIPHbqqKbN9mmRGTU1jguP2A1glvkna6qqJ1xkUwsumwhRtDTgImVg9aw4wLoVpPtfjEReu79X63AD32ii9qtyF4hlU1ZVzjfaygBdxCIKP66qr8kpclx_Ewmob7spl76fj\" alt=\"Amazon Comprehend\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Amazon Comprehend uses machine learning and is continuously being trained to make it better for your use cases. You can also feed it a set of text documents, and it will identify topics (or groups of words) that best represent the information in the collection.<\/p>\n\n\n\n<h2>Benefits of Amazon Comprehend<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/EsRy3mQj6RodvS-wd8cQwhTQiFQ6DmUjYCadmoVEpueFM2LoHeOlRtEVi5Fz7YEMMilTnfUFXod1JSCFXOWJ5tUOyGyZwyt2fjHB_sp_14k5NlpAiqM91qL9uunDxO9Didr1OFdL\" alt=\"Benefits of Amazon Comprehend\"\/><\/figure>\n\n\n\n<ul><li><strong>Train models on your own data:<\/strong> Used to identify specific terms. You can tailor the classification messages and documents to your organization\u2019s needs, such as social media posts by product. It\u2019s as simple as providing the labels and a small set of examples of each.<\/li><\/ul>\n\n\n\n<ul><li><strong>Uncover valuable insights from your text:<\/strong> Uncover the meaning and relationships in text from customer support incidents, product reviews, social media feeds, news articles, documents, and other sources.<\/li><\/ul>\n\n\n\n<ul><li><strong>Support for general and industry-specific text:<\/strong> Can identify industry-specific insights from unstructured text and documents, like emails. Amazon Comprehend Medical can identify medical information, such as medication and medical conditions, from a variety of sources (including doctor\u2019s notes), and determine their relationship to each other. It enables easier analysis and provides context, to make extracted terms meaningful.<\/li><\/ul>\n\n\n\n<ul><li><strong>Organize documents by topics:<\/strong> Can be trained to label documents with topics or tags defined by you. Natural Language Processing techniques enable the solution to go beyond keyword search or rules-based tagging for more accurate document classification. Deliver personalized content to your customers and provide richer navigation based on these topics.<\/li><\/ul>\n\n\n\n<h2>Common Use Cases of Amazon Comprehend<\/h2>\n\n\n\n<ul><li><strong>Customer Analytics<\/strong>&nbsp;<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/aD_u9qpHKvTuUj7hQQKeTWw58nKkC6fA4_jNkCh-PeXchPfOuFcUxfcrQ9JdIJZfoVjcXBrL3hsPIC0DQywoXs0b6oo7kf2gFINl7E_vYnuw4azLNd7NvfG4sOrNmeDc8eBj62qn\" alt=\"\"\/><\/figure>\n\n\n\n<ul><li><strong>Accurate Search<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/8ksDdmIR5M5do6jnMVtgZ2gtEGXmhfbWIHMJYJg5v7Oh5X1GvKjkG-smrlO0yMe02nFXVEYQoWDWfFee_55ypopyvU32wRh9nVpHdprEok9-3S0K4YXXGiiOtUYd2p8Vq7S6M8qD\" alt=\"\"\/><\/figure>\n\n\n\n<ul><li><strong>Knowledge Management&nbsp;<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/r7GilOZXhgAFy3mAb5QxnM8gNyE7SYLJmBvGZ2cvA2sVhz923WI4uJlmraFa5uLFFSD77xJ9fqo6lbBEGQ5_-8gwJWELhS9c80WBE7XvvQtLOY5OCMPD18FuqoGASICS3kqiR7u4\" alt=\"Common Use Cases of Amazon Comprehend\"\/><\/figure>\n\n\n\n<ul><li><strong>Support Tickets<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/zhcvLNGnvl5hxKr9vR6GkMzf9xxx3nrlkwntl8HYtyGYTAJMjh9QgSd5lMMJyce76ktyYSWBPZyPfbyud-MNXgXF0xIMkctrWV7R56zOAefTuTWIfdikowBc9ZU0m6MOThBhjmrL\" alt=\"Common Use Cases of Amazon Comprehend\"\/><\/figure>\n\n\n\n<ul><li><strong>Medical Cohort Analysis<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/fkTNRy4eFmm3iyRpvn_tQRMqhexRI0jlvZTT3ngSJdiv4Yt3QRrWDa8z5apvSLAy8K7bzohF1CwX1oIZpys83vXp8ubP0enjiVHLANcje2S1RA_-IvwZy7RnPL1fLShdbfVpXLot\" alt=\"Common Use Cases of Amazon Comprehend\"\/><\/figure>\n\n\n\n<h2>Features of Amazon Comprehend<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/hvVJJVnlxilmVVN-QkJU6hKP-E4MdkdQsLP8fdlstC1Ng-c8G7bYzb3aF3SvIQLfeo1IHwXWjBiV-7WrYaMUUHBgjnnKKbD71xLRLwZvpNkJ2tczwKsNHiKkXyuxJYrweiBcjt1V\" alt=\"Features of Amazon Comprehend\"\/><\/figure>\n\n\n\n<ul><li><strong>Keyphrase Extraction: <\/strong>The Key Extraction API gives key phrases or talking points, as well as a confidence level indicating whether or not this is a key phrase.<\/li><li><strong>Sentiment Analysis: <\/strong>The Sentiment Analysis API provides a summary of a text&#8217;s overall sentiment (Positive, Negative, Neutral, or Mixed).<\/li><li><strong>Custom Entities:<\/strong> With Custom Entities, you may tailor Amazon Comprehend to find phrases that are unique to your domain. Comprehend will utilise AutoML to learn from a tiny private index of instances (for example, a list of policy numbers and the text in which they appear) and then train a private, bespoke model.<\/li><li><strong>Syntax Analysis:<\/strong> Customers may use the Amazon Comprehend Syntax API to analyse text using tokenization and Parts of Speech (PoS), as well as detect word boundaries and labels such as nouns and adjectives.<\/li><li><strong>Entity Recognition:<\/strong> The Entity Recognition API delivers named entities (&#8220;People,&#8221; &#8220;Places,&#8221; &#8220;Locations,&#8221; and so on) that have been automatically classified based on the input text.<\/li><li><strong>Language Detection:<\/strong> The Language Detection API detects text written in over 100 languages and delivers the prevailing language along with a confidence score to back the assertion that a language is dominant.<\/li><li><strong>Custom Categorization:<\/strong> With the Custom Classification API, you can quickly create custom text classification models based on your company&#8217;s labels.<\/li><li><strong>Topic Modeling:<\/strong> From a collection of documents stored in Amazon S3, Topic Modeling extracts relevant phrases or subjects. It will find the collection&#8217;s most prevalent subjects, group them together, and then map which documents belong to this topic.<\/li><li><strong>Multiple Language Support: <\/strong>Amazon Comprehend can analyse texts in English, French, German, Italian, Portuguese, and Spanish. This allows you to create apps that can identify text in many languages, translate it to English, French, German, Italian, Portuguese, and Spanish using Amazon Translate, and then do text analysis using Amazon Comprehend.<\/li><\/ul>\n\n\n\n<h2>Pricing<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/CNgDTz8cqjf7DrJO3rrHZRQ27qXQ58Y0fUmZN9bJzPzxGXLx4erUbTkM88VywYuoDAk6Tf8SFHruNaAW1_dwLlYwxobBLgfEd_ciy-aW0f95WXhXkfZGObewKY8KqonD_0Tc0j14\" alt=\"\"\/><\/figure>\n\n\n\n<h2>Companies using Amazon Comprehend<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/l8nBO070OkrKT1ulpagu4B_TiHxquZjUhDs7_8Wwc5V8hX_Be5FJU_0Yv21imQvjWsFrsjWinisp6AoxdFHvKJy3C7Z1ZMwsVkvU21dFB2VCoOanHl4G3kV_FEwzjywipUdTrQTJ\" alt=\"\"\/><\/figure>\n\n\n\n<h2>Conclusion<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we have discussed NLP and Amazon Comprehend as one of the best NLP services. You understood that NLP works behind the scenes to enhance tools you use every day, like chatbots, spell-checkers, or language translators. In part 2 of this blog, we will be demonstrating how we can integrate Amazon Comprehend with AWS Lambda function and Amazon Lex bot to create an efficient and helpful bot. We will implement the sentiment analysis feature for the bot via Lambda Function integrating it with Amazon Comprehend. Stay tuned to keep getting all updates about our upcoming new blogs on AWS and relevant technologies.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Meanwhile \u2026<\/p>\n\n\n\n<p class=\"has-text-align-justify\"><strong>Keep Exploring -&gt; Keep Learning -&gt; Keep Mastering<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">This blog is part of our effort towards building a knowledgeable and kick-ass tech community. At <a href=\"https:\/\/www.workfall.com\/\">Workfall<\/a>, we strive to provide the best tech and pay opportunities to AWS-certified talents. If you\u2019re looking to work with global clients, build kick-ass products while making big bucks doing so, give it a shot at<a href=\"https:\/\/www.workfall.com\/partner\/\"> workfall.com\/partner<\/a> today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">7<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> When we are asking Siri &#8211; \u201cHey Siri, where is the nearest grocery store?\u201d or telling Alexa &#8211; \u201cAlexa, can you play my workout music?\u201d, we are actually talking to machines! These virtual assistants are examples of machines that understand human languages and respond!! Sounds interesting right? Now you must be keen to know how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":487,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[149,150,3,151,6],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog<\/title>\n<meta name=\"description\" content=\"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog\" \/>\n<meta property=\"og:description\" content=\"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/\" \/>\n<meta property=\"og:site_name\" content=\"The Workfall Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/workfall\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-10T09:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-28T12:40:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@workfall\" \/>\n<meta name=\"twitter:site\" content=\"@workfall\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Workfall\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\",\"name\":\"Workfall - Hire #Kickass Coders On Demand\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/workfall\/\",\"https:\/\/www.linkedin.com\/company\/workfall\/\",\"https:\/\/facebook.com\/workfall\",\"https:\/\/twitter.com\/workfall\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"contentUrl\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"width\":400,\"height\":400,\"caption\":\"Workfall - Hire #Kickass Coders On Demand\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"name\":\"The Workfall Blog\",\"description\":\"#Tech #Remote #Jobs\",\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png\",\"width\":1200,\"height\":628,\"caption\":\"Natural Language Processing using Amazon Comprehend\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage\",\"url\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/\",\"name\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage\"},\"datePublished\":\"2021-11-10T09:18:00+00:00\",\"dateModified\":\"2023-04-28T12:40:52+00:00\",\"description\":\"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.\",\"breadcrumb\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?\",\"datePublished\":\"2021-11-10T09:18:00+00:00\",\"dateModified\":\"2023-04-28T12:40:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage\"},\"wordCount\":1500,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png\",\"keywords\":[\"ai4all\",\"artificialintelligence\",\"AWS\",\"naturallanguageprocessing\",\"workfall\"],\"articleSection\":[\"AWS Cloud Computing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\",\"name\":\"Workfall\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"caption\":\"Workfall\"},\"sameAs\":[\"https:\/\/www.workfall.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog","description":"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/","og_locale":"en_US","og_type":"article","og_title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog","og_description":"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.","og_url":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2021-11-10T09:18:00+00:00","article_modified_time":"2023-04-28T12:40:52+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization","name":"Workfall - Hire #Kickass Coders On Demand","url":"https:\/\/learning.workfall.com\/learning\/blog\/","sameAs":["https:\/\/www.instagram.com\/workfall\/","https:\/\/www.linkedin.com\/company\/workfall\/","https:\/\/facebook.com\/workfall","https:\/\/twitter.com\/workfall"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","contentUrl":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","width":400,"height":400,"caption":"Workfall - Hire #Kickass Coders On Demand"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website","url":"https:\/\/learning.workfall.com\/learning\/blog\/","name":"The Workfall Blog","description":"#Tech #Remote #Jobs","publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png","width":1200,"height":628,"caption":"Natural Language Processing using Amazon Comprehend"},{"@type":"WebPage","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage","url":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/","name":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)? - The Workfall Blog","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage"},"datePublished":"2021-11-10T09:18:00+00:00","dateModified":"2023-04-28T12:40:52+00:00","description":"Amazon Comprehend has a powerful behind-the-scenes machine-learning model and can be used without any prior Machine-learning experience.","breadcrumb":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?"}]},{"@type":"Article","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#article","isPartOf":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?","datePublished":"2021-11-10T09:18:00+00:00","dateModified":"2023-04-28T12:40:52+00:00","mainEntityOfPage":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#webpage"},"wordCount":1500,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png","keywords":["ai4all","artificialintelligence","AWS","naturallanguageprocessing","workfall"],"articleSection":["AWS Cloud Computing"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a","name":"Workfall","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","caption":"Workfall"},"sameAs":["https:\/\/www.workfall.com"]}]}},"jetpack_featured_media_url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png","jetpack-related-posts":[{"id":310,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/","url_meta":{"origin":486,"position":0},"title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?","date":"November 1, 2021","format":false,"excerpt":"In our previous blog, How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis(Part 1)? we have discussed NLP, Amazon Comprehend as one of the best NLP services, its features, benefits, use cases, etc. In this blog, we will demonstrate how to configure Amazon Comprehend\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to use AWS Comprehend for Sentiment Analysis","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":549,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-connect-smart-devices-to-the-amazon-iot-core-service-and-watch-it-send-mqtt-messages-part-1\/","url_meta":{"origin":486,"position":1},"title":"How to connect smart devices to the AWS IoT Core service and watch it send MQTT messages (Part 1)?","date":"November 10, 2021","format":false,"excerpt":"The Internet of Things, also known as IoT, in recent years, successfully disrupted our daily lives. If you are using smartphones, smart watches, smart fire alarms, smart door locks, smart bicycles, medical sensors, fitness trackers, smart security systems, smart refrigerators, or smart cars, you are using IoT devices! IoT devices\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS IoT Core - Workfall","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/IoT-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1494,"url":"https:\/\/learning.workfall.com\/learning\/blog\/amazon-eks-clusters-locally-on-aws-outposts\/","url_meta":{"origin":486,"position":2},"title":"Amazon EKS Clusters Locally on AWS Outposts","date":"October 25, 2022","format":false,"excerpt":"AWS recently announced the availability of Amazon EKS local clusters on AWS Outposts. It means that now users can run the Amazon EKS cluster entirely on Outposts, including the Kubernetes control plane and nodes. To make things easier, AWS now allows you to host your entire Amazon EKS cluster on\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Amazon EKS Clusters Locally on AWS Outposts","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/10\/Cover-Images_Part2-1-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":520,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-build-a-serverless-workflow-with-aws-step-functions-part-1\/","url_meta":{"origin":486,"position":3},"title":"How to build a Serverless Workflow with AWS Step Functions (Part 1)?","date":"November 10, 2021","format":false,"excerpt":"AWS Step Functions is a serverless orchestration solution that enables you to effortlessly coordinate several Lambda functions into customizable workflows that are simple to debug and modify. To see the full implementation of How to Build a Serverless Workflow with AWS Step Functions, refer to part 2 of the blog\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Step Functions - Workfall","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/StepFunction01.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":541,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-build-a-serverless-event-driven-workflow-with-aws-glue-and-amazon-eventbridgepart-1\/","url_meta":{"origin":486,"position":4},"title":"How to build a serverless event-driven workflow with AWS Glue and Amazon EventBridge(Part 1)?","date":"November 10, 2021","format":false,"excerpt":"Have you ever wondered how huge IT companies construct their ETL pipelines for production? Are you curious about how TBs and ZBs of data are effortlessly captured and rapidly processed to a database or other storage for data scientists and analysts to use? The answer is the serverless data integration\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Glue","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/Glue.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":416,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-do-event-driven-programming-using-aws-lambda-with-amazon-kinesis-streams\/","url_meta":{"origin":486,"position":5},"title":"How to do event-driven programming using AWS Lambda with Amazon Kinesis Streams?","date":"November 3, 2021","format":false,"excerpt":"Amazon Kinesis is an AWS-managed service that processes streaming data at a massive scale. Using Amazon Kinesis, data could be easily sent to various sources like S3, DynamoDB, Redshift, and Lambda. Kinesis is used to process hundreds of terabytes of data per hour. AWS LAMBDA works as an event-driven computing\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Amazon Kinesis Streams","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/Kinesis.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/486"}],"collection":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":5,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":1872,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions\/1872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/487"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}