

{"id":119585,"date":"2011-01-03T20:10:48","date_gmt":"2011-01-03T14:40:48","guid":{"rendered":"http:\/\/analyticstraining.com\/?p=98"},"modified":"2022-08-05T18:30:45","modified_gmt":"2022-08-05T13:00:45","slug":"sentiment-analysis","status":"publish","type":"post","link":"https:\/\/www.jigsawacademy.com\/sentiment-analysis\/","title":{"rendered":"What\u2019s the sentiment on \u201csentiment analysis\u201d?"},"content":{"rendered":"<p style=\"text-align: justify;\"><em>\u201cNo takers for \u2018Takers\u2019\u201d<\/em><\/p>\n<p style=\"text-align: justify;\">I had already received three posts slamming the new movie \u2018Takers\u2019 on Facebook. I had determinedly ignored them and planned to watch the movie this weekend. <!--more-->However, this last post was from someone who I considered a movie buff with taste similar to mine.\u00a0The decision was made. Instead, I watched South Africa massacre India in the first test.\u00a0 \u2018Takers\u2019 could not have been much worse.<\/p>\n<p style=\"text-align: justify;\">Information now-a-days is being created at a frightening pace. Over 30 billion pieces of content are shared every month of Facebook. There are 55 million tweets\u00a0 a day and hundreds of millions of blogs and forums being read by billions of people. Personal opinions abound in the shape of reviews, ratings and recommendations.<\/p>\n<div class=\"_form_3\"><\/div>\n<p><script src=\"https:\/\/jigsawacademy67103.activehosted.com\/f\/embed.php?id=3\" type=\"text\/javascript\" charset=\"utf-8\"><\/script><\/p>\n<p style=\"text-align: justify;\">This is a gold mine of information for analysts and businesses who want to feel the pulse of the collective consciousness of the world wide web.<\/p>\n<ul style=\"text-align: justify;\">\n<li>What do customers think of my product?<\/li>\n<li>Are they happy with the services?<\/li>\n<li>How do my policies or external events impact my customers\u2019 perception of me?<\/li>\n<li>What do customers like about my competitors?<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Online opinion is a powerful force that can make or break a product in the market place. Yet many companies struggle to make sense of this glut of bouquets and brick-bats that comes their way on the web. Is there a way to make sense of this jungle of information, find meaningful patterns and make fact-based decisions?<\/p>\n<p style=\"text-align: justify;\">Sentiment analysis is a powerful, emerging field that attempts to analyze and measure human emotions and convert it into hard facts. On the web, it helps businesses monitor news articles, online forums and social networking sites for trends in opinions about their products and services or topics in the news.<\/p>\n<p style=\"text-align: justify;\"><strong>\u201cStub hub\u201d<\/strong> an online ticketing company used such monitoring tools to identify an upsurge of negative blog sentiment against the company after its decision to not refund tickets for a particular game. The company quickly went into damage control mode by offering discounts and credits to affected customers.<\/p>\n<p style=\"text-align: justify;\">The <strong>US home land security<\/strong> has been working with a consortium of universities over the last 4 years to develop a software that would let the government monitor negative opinions of the US or its leaders in newspapers and other publications overseas.<\/p>\n<p style=\"text-align: justify;\">Large companies like <strong>Wal-Mart<\/strong> use sentiment analysis to observe opinions about themselves as well as specific issues around them.<\/p>\n<p><strong>What is sentiment analysis python?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Sentiment analysis python is a methodology for evaluating text to detect hidden sentiments. This is enabled through the use of machine learning and NLP. Sentiment analysis examines the emotions represented in a piece of writing.<\/span><\/p>\n<p><b>Why is sentiment analysis important?<\/b><\/p>\n<p><b>Sentiment analysis python <\/b><span style=\"font-weight: 400;\">solves several business problems:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It helps to predict customer behavior for a particular product.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It can help to test the adaptability of a product.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Automates the task of customer preference reports.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It can easily automate the process of determining how well a movie run by analyzing the sentiments behind the movie&#8217;s reviews from several platforms.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>How does sentiment analysis work?<\/strong><\/p>\n<p style=\"text-align: justify;\">At a basic level sentiment analysis works by classifying the polarity of a given text, either in part or in full. The simplest algorithms work by scanning keywords to categorize a statement as negative or positive, based on a simple binary analysis. Example \u2013 \u201cenjoyed\u201d is good, \u201cmiserable\u201d is bad.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-270\" style=\"border: 1px solid black;\" title=\"Sentiment Analysis\" src=\"http:\/\/analyticstraining.com\/wp-content\/uploads\/2011\/02\/illustration_12.jpg\" alt=\"Sentiment Analysis\" width=\"500\" height=\"500\" \/>However, this is just the first step. Businesses have realized that when opinions are aplenty, not all are equally important. Some opinions carry more weight than others. A negative review by Lady Gaga on Twitter will have a much greater impact on a restaurant than a tweet by an ordinary person. Sentiment analysis tools now allow users to generate \u2018influence scores\u2019 to identify people, blogs, forums etc. that are important to their company or industry.<\/p>\n<p style=\"text-align: justify;\">A restaurant could leverage sentiment analysis to find people on twitter who have the highest percentage of tweets related to restaurants or that particular restaurant. Amongst these, a twitterer with higher number of followers would be graded higher on influence and then re-tweets would measure level of engagement from the audience. In this way, a business could identify opinion-makers that are relevant to them and assign them higher weights to calculate a more accurate indicator of sentiment.<\/p>\n<p><b>Differentiate between rule based approach and machine based approach<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>What is a rule based process?<\/b><\/td>\n<td><b>What is a Machine-based process?<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">The machine follows rules or instructions given by the developer. It is also called <\/span><b>lexicon based sentiment analysis<\/b><span style=\"font-weight: 400;\">.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The machine itself understands data, identifies patterns and makes decisions.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Once trained, the machine ignores any modifications made to the original database.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Assists in acquiring new information.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">lexicon-based <\/span><b>sentiment analysis example<\/b><span style=\"font-weight: 400;\">-Virtual Assistant.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Machine based <\/span><b>sentiment analysis example<\/b><span style=\"font-weight: 400;\">&#8211; Image recognition<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Installation and Authentication of Twitter Sentiment Analysis using Python:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tweepy is a Python client for Twitter&#8217;s official API.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install it by running the pip command:<\/span><\/li>\n<\/ul>\n<p><b>pip install tweepy<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">TextBlob: text blob is a Python package that allows you to handle textual data.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install it by running the pip command:<\/span><\/li>\n<\/ul>\n<p><b>pip install textblob<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In addition, install certain NLTK corpora using the command:\u00a0<\/span><\/li>\n<\/ul>\n<p><b>python -m textblob.download_corpora<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">(Corpora is a big and well-organized collection of texts.)<\/span><\/li>\n<\/ul>\n<p><b>Authentication:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To retrieve tweets using <\/span><b>Twitter API<\/b><span style=\"font-weight: 400;\">, one must first register an App with their Twitter account. Follow these steps:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open this<\/span><a href=\"https:\/\/apps.twitter.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\"> link<\/span><\/a><span style=\"font-weight: 400;\"> and click the &#8216;Create New App&#8217; option.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fill out the application form. The callback URL field can be left blank.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You will be routed to the page after the app has been created.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Navigate to the &#8216;Keys and Access Tokens tab.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8216;Consumer Key,&#8217; &#8216;Access Token,&#8217; &#8216;Consumer Secret,&#8217; and &#8216;Access Token Secret&#8217; should all be copied.<\/span><\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">Some interesting news and articles on this topic.<\/h2>\n<ul>\n<li><span style=\"color: #339966;\"><strong><span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.computerworld.com\/s\/article\/9209140\/Sentiment_analysis_comes_of_age\" target=\"_blank\" rel=\"noopener noreferrer\">Sentiment analysis comes of age<\/a><\/span><\/strong><\/span><\/li>\n<li><span style=\"color: #339966;\"><strong><span style=\"text-decoration: underline;\"><a href=\"http:\/\/econsultancy.com\/us\/blog\/7159-email-sentiment-analysis\" target=\"_blank\" rel=\"noopener noreferrer\">Is the world ready for email sentiment analysis?<\/a><\/span><\/strong><\/span><\/li>\n<li><span style=\"color: #339966;\"><strong><span style=\"text-decoration: underline;\"><a title=\"IBM\u2019s Watson Could Be Used For Sentiment Analysis In Social Media\" href=\"http:\/\/www.blogherald.com\/2011\/02\/21\/ibms-watson-could-be-used-for-sentiment-analysis-in-social-media\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">IBM\u2019s Watson Could Be Used For Sentiment Analysis In Social Media<\/a><\/span><\/strong><\/span><\/li>\n<li><span style=\"color: #339966;\"><strong><span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.informationweek.com\/news\/software\/bi\/showArticle.jhtml?articleID=229218847\" target=\"_blank\" rel=\"noopener noreferrer\">Seven Breakthrough Sentiment Analysis Scenarios<\/a><\/span><\/strong><\/span><\/li>\n<\/ul>\n<h2><strong>Related articles:<\/strong><\/h2>\n<ul>\n<li><strong><a href=\"..\/2011\/2011\/key-skills-for-a-successful-analytics-career\/#more\" target=\"_blank\" rel=\"noopener noreferrer\">Key Skills for a Successful Analytics Career<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/analyticstraining.com\/2010\/career-in-analytics-in-a-kpo\/\" target=\"_blank\" rel=\"noopener noreferrer\">Career in Analytics in a KPO<\/a><\/strong><\/li>\n<li><strong><a href=\"..\/2011\/2011\/analytics-for-mbas\/#more\" target=\"_blank\" rel=\"noopener noreferrer\">Educating on Analytics<\/a><\/strong><\/li>\n<li><strong><a href=\"..\/2011\/2011\/42-%E2%80%93-the-answer-to-everything\/#more\" target=\"_blank\" rel=\"noopener noreferrer\">42 \u2013 the answer to everything!<\/a><\/strong><\/li>\n<li><strong><a href=\"..\/2011\/2010\/books-on-analytics\/#more\" target=\"_blank\" rel=\"noopener noreferrer\">Books on Analytics<\/a><\/strong><\/li>\n<\/ul>\n<div><em>Interested in learning about other Analytics and Big Data tools and techniques? Check our IIM Indore-certified <a href=\"https:\/\/www.jigsawacademy.com\/integrated-program-in-business-analytics\/\"><strong>Integrated Program In Business Analytics today<\/strong><\/a>!<\/em><\/div>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s the sentiment on &#8220;sentiment analysis&#8221;? Is the field ready to take off?<\/p>\n","protected":false},"author":105,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[186,188,1496,1210,541],"tags":[538,83,539,540],"form":[10307],"acf":[],"_links":{"self":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/119585"}],"collection":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/comments?post=119585"}],"version-history":[{"count":3,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/119585\/revisions"}],"predecessor-version":[{"id":245811,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/119585\/revisions\/245811"}],"wp:attachment":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/media?parent=119585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/categories?post=119585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/tags?post=119585"},{"taxonomy":"form","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/form?post=119585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}