{"id":8031,"date":"2023-10-25T14:46:03","date_gmt":"2023-10-25T22:46:03","guid":{"rendered":"https:\/\/live-cometml.pantheonsite.io\/?p=8031"},"modified":"2025-04-24T17:05:12","modified_gmt":"2025-04-24T17:05:12","slug":"tracking-your-sentiment-analysis-with-comet","status":"publish","type":"post","link":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\/","title":{"rendered":"Tracking Your Sentiment Analysis With Comet"},"content":{"rendered":"\n<link rel=\"canonical\" href=\"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\">\n\n\n\n<div class=\"fk fl fm fn fo\">\n<div class=\"ab ca\">\n<div class=\"ch bg ew ex ey ez\">\n<figure class=\"lz ma mb mc md me lw lx paragraph-image\">\n<div class=\"mf mg ee mh bg mi\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg\" alt=\"\" width=\"700\" height=\"342\"><\/figure><div class=\"lw lx ly\"><picture><\/picture><\/div>\n<\/div><figcaption class=\"ml mm mn lw lx mo mp be b bf z dw\" data-selectable-paragraph=\"\">Source:datascientist.com<\/figcaption><\/figure>\n<p id=\"637b\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Sentiment analysis, commonly referred to as \u201copinion mining,\u201d is the method of drawing out irrational information from written or spoken words. The study of how people communicate their thoughts, beliefs, and feelings through language is a fast-expanding area of natural language processing (NLP).<\/p>\n<p id=\"c3c2\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Customer service, marketing, and political analysis are just a few of the many uses for sentiment analysis. Companies can use sentiment analysis in customer service, for instance, to monitor and address client feedback and grievances posted on websites, social media platforms, and other channels. They can use this to enhance the consumer experience and pinpoint areas where their goods or services need to be improved.<\/p>\n<p id=\"7d54\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">In marketing, businesses can utilize sentiment analysis to comprehend consumer perceptions of their brand, those of their rivals, and market trends. They can use this information to adapt their marketing plans so that they more closely match the interests and demands of their target market.<\/p>\n<p id=\"d0c1\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Sentiment analysis is often applied to political analysis. Sentiment analysis is a tool that political scientists and analysts can use to monitor and examine public opinion on political issues, politicians, and parties. This can offer insightful information on the attitudes and beliefs of voters and aid in the prediction of election results.<\/p>\n<p id=\"18f4\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">There are several methods for performing sentiment analysis, including rule-based approaches, lexicon-based approaches, and machine-learning approaches.<\/p>\n<p id=\"9d61\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">In rule-based techniques, the text is classified as positive, negative, or neutral by creating a set of rules or heuristics. These criteria may be based on language elements such as keywords, grammar, or other aspects. Although this technology is quick and easy to use, it is error-prone and might not be able to fully capture the subtleties of human language.<\/p>\n<p id=\"84ac\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Lexicon-based strategies make use of a pre-established collection of words that are connected to either positive or negative emotion. The quantity of positive and negative words in a passage of text can be used to gauge its mood. Although this strategy is more precise than rule-based ones, it is constrained by the scope and standard of the vocabulary that is being utilized.<\/p>\n<p id=\"464b\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">A machine learning model is trained using a sizable dataset of text that has been labeled in order to classify language as positive, negative, or neutral. These models are more accurate than rule-based or lexicon-based methods because they can learn to recognize patterns and features that are indicative of sentiment. But they need a lot of labeled training data, and the dataset could be biased.<\/p>\n<p id=\"6c43\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">In this article, we\u2019ll learn how to link Comet with Disneyland Sentiment Analysis. In order to accomplish this, we will perform some EDA on the Disneyland dataset, and then we will view the visualization on the Comet experimentation website or platform. Let\u2019s get started!<\/p>\n<h1 id=\"322f\" class=\"nn no fr be np nq nr ns nt nu nv nw nx ny nz oa ob oc od oe of og oh oi oj ok bj\" data-selectable-paragraph=\"\">About Comet<\/h1>\n<p id=\"36a6\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">Comet is an experimentation tool that helps you keep track of your machine-learning studies. Another significant aspect of Comet is that it enables us to carry out exploratory data analysis. Comet\u2019s interoperability with well-known Python visualization frameworks enables us to achieve our EDA goals. You can learn more about Comet <a class=\"af oq\" href=\"\/signup?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_SNUP_heartbeat_CTA\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>.<\/p>\n<h1 id=\"397f\" class=\"nn no fr be np nq nr ns nt nu nv nw nx ny nz oa ob oc od oe of og oh oi oj ok bj\" data-selectable-paragraph=\"\">Prerequisites<\/h1>\n<p id=\"5e96\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">If the Comet library isn\u2019t currently installed on your machine, you can add it by entering one of the following commands at the command prompt. Be aware that pip is probably what you should use if you\u2019re installing packages directly into a Colab notebook or another environment that makes use of virtual machines.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"3ea2\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">pip install comet_ml<\/span><\/pre>\n<p id=\"0223\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">\u2014 or \u2014<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"a9a3\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">conda install <span class=\"hljs-operator\">-<\/span><span class=\"hljs-built_in\">c<\/span> comet_ml<\/span><\/pre>\n<p id=\"9404\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">We then create our <code class=\"cw pf pg ph ox b\">.comet.config<\/code> file and add in our API key, workspace, and name of our project so all the readings on our models can be automatically tracked and logged. If you don\u2019t already have a Comet account, you can sign up for free <a class=\"af oq\" href=\"\/signup?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_SNUP_heartbeat_CTA\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>, and then just grab your API key from <code class=\"cw pf pg ph ox b\">Account settings<\/code> \/ <code class=\"cw pf pg ph ox b\">API Keys<\/code>.<\/p>\n<h1 id=\"9d5f\" class=\"nn no fr be np nq nr ns nt nu nv nw nx ny nz oa ob oc od oe of og oh oi oj ok bj\" data-selectable-paragraph=\"\">The Analysis<\/h1>\n<p id=\"2a3d\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">In this lesson, we\u2019ll walk you through the process of running sentiment analysis on reviews of Disneyland and then explore the results with Comet. Specifically, we\u2019ll be using the <a class=\"af oq\" href=\"https:\/\/www.kaggle.com\/datasets\/arushchillar\/disneyland-reviews\" target=\"_blank\" rel=\"noopener ugc nofollow\">Disneyland dataset <\/a>from Kaggle, which is a sizable dataset. Simply determining whether or not people are truly happy at Disneyland is the sole purpose of this analysis.<\/p>\n<p id=\"d88b\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">The first step involves loading your Comet libraries and other Comet-related dependencies, and the importance of this is that it captures all your readings automatically from start to finish.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"90e4\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\"><span class=\"hljs-keyword\">from<\/span> comet_ml <span class=\"hljs-keyword\">import<\/span> Experiment\ncomet_string = <span class=\"hljs-string\">\"\"\"[comet]\napi_key=K1fGCe5YL4XrwI01qoCSNvY3R\nproject_name=Sentiment Analyis\nworkspace=olujerry\n\"\"\"<\/span>\n<span class=\"hljs-keyword\">with<\/span> <span class=\"hljs-built_in\">open<\/span>(<span class=\"hljs-string\">'.comet.config'<\/span>, <span class=\"hljs-string\">'w'<\/span>) <span class=\"hljs-keyword\">as<\/span> f:\n    f.write(comet_string)<\/span><\/pre>\n<h2 id=\"5b69\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 2: Import and install all libraries and dependencies.<\/h2>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"ffa7\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\"><span class=\"hljs-keyword\">import<\/span> numpy <span class=\"hljs-keyword\">as<\/span> np\n<span class=\"hljs-keyword\">import<\/span> pandas <span class=\"hljs-keyword\">as<\/span> pd\n<span class=\"hljs-keyword\">import<\/span> matplotlib.pyplot <span class=\"hljs-keyword\">as<\/span> plt\n<span class=\"hljs-keyword\">import<\/span> seaborn <span class=\"hljs-keyword\">as<\/span> sns\ncolor = sns.color_palette()\n%matplotlib inline\n<span class=\"hljs-keyword\">import<\/span> plotly.offline <span class=\"hljs-keyword\">as<\/span> py\npy.init_notebook_mode(connected=<span class=\"hljs-literal\">True<\/span>)\n<span class=\"hljs-keyword\">import<\/span> plotly.graph_objs <span class=\"hljs-keyword\">as<\/span> go\n<span class=\"hljs-keyword\">import<\/span> plotly.tools <span class=\"hljs-keyword\">as<\/span> tls\n<span class=\"hljs-keyword\">import<\/span> plotly.express <span class=\"hljs-keyword\">as<\/span> px<\/span><\/pre>\n<h2 id=\"ac3c\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 3: Load the dataset.<\/h2>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"6a1e\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">Disney_reviews = pd.read_csv(<span class=\"hljs-string\">'\/content\/DisneylandReviews.csv'<\/span>,encoding=<span class=\"hljs-string\">'latin-1'<\/span>)<\/span><\/pre>\n<h2 id=\"cacb\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 4: Perform some EDA on the dataset.<\/h2>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"c5d4\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">Disney_reviews.<span class=\"hljs-built_in\">head<\/span>()<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<div class=\"mf mg ee mh bg mi\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*9TPmQUjRiGlgwPREcswiLA.jpeg\" alt=\"\" width=\"700\" height=\"141\"><\/figure><div class=\"lw lx pz\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*9TPmQUjRiGlgwPREcswiLA.jpeg 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"33d9\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">We can see that the dataframe contains some ratings, year, month, reviewer\u2019s location, and then the reviews.<\/p>\n<p id=\"66d2\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">The data that we will be using most for this analysis is \u201crating,&#8221; &#8220;Review_Text,&#8221;and \u201cBranch<em class=\"qa\">.\u201d<\/em><\/p>\n<ol class=\"\">\n<li id=\"cc5f\" class=\"mq mr fr be b ms mt mu mv mw mx my mz na qb nc nd ne qc ng nh ni qd nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Review_ID: unique id is given to each review<\/li>\n<li id=\"dfc6\" class=\"mq mr fr be b ms qh mu mv mw qi my mz na qj nc nd ne qk ng nh ni ql nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Rating: ranging from 1 (unsatisfied) to 5 (satisfied)<\/li>\n<li id=\"309f\" class=\"mq mr fr be b ms qh mu mv mw qi my mz na qj nc nd ne qk ng nh ni ql nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Year_Month: when the reviewer visited the theme park<\/li>\n<li id=\"42ae\" class=\"mq mr fr be b ms qh mu mv mw qi my mz na qj nc nd ne qk ng nh ni ql nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Reviewer_Location: country of origin of the visitor<\/li>\n<li id=\"f4c7\" class=\"mq mr fr be b ms qh mu mv mw qi my mz na qj nc nd ne qk ng nh ni ql nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Review_Text: comments made by the visitor<\/li>\n<li id=\"9e12\" class=\"mq mr fr be b ms qh mu mv mw qi my mz na qj nc nd ne qk ng nh ni ql nk nl nm qe qf qg bj\" data-selectable-paragraph=\"\">Disneyland_Branch: location of Disneyland Park<\/li>\n<\/ol>\n<h2 id=\"15a6\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 5: Deeper EDA<\/h2>\n<p id=\"2382\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">Now, we will take a look at the variable \u201cRating\u201d to see if the majority of the customer ratings are positive or negative.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"582d\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">fig = px.histogram(Disney_reviews, x=<span class=\"hljs-string\">\"Rating\"<\/span>)\nfig.update_traces(marker_color=<span class=\"hljs-string\">\"turquoise\"<\/span>,marker_line_color=<span class=\"hljs-string\">'rgb(8,48,107)'<\/span>,\n                  marker_line_width=1.5)\nfig.update_layout(title_text=<span class=\"hljs-string\">'Disneyland Ratings'<\/span>)<\/span><\/pre>\n<p id=\"cde6\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">From here, we can tell that the majority of client reviews are favorable. This makes me think that most reviews will be largely favorable as well, which will be examined after some time.<\/p>\n<p id=\"d66c\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Using a module called VADER (Valence Aware Dictionary for Sentiment Reasoning), text sentiment analysis can be sensitive to both the polarity (positive\/negative) and intensity (strong) of emotion. It is specifically created for attitudes expressed through social media and applied directly to unlabeled text data. The sentiment intensity analyzer function of VADER accepts a string and produces a dictionary of scores for each of the following categories: negative neutral positive compound (the total of the negative, neutral, and positive scores, adjusted between -1 and +1) (strongly positive).<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"fk fl fm fn fo\">\n<div class=\"ab ca\">\n<div class=\"ch bg ew ex ey ez\">\n<blockquote class=\"qu\"><p id=\"4f81\" class=\"qv qw fr be qx qy qz ra rb rc rd nm dw\" data-selectable-paragraph=\"\">Have you tried Comet? <a class=\"af oq\" href=\"\/signup?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_SNUP_heartbeat_CTA\" target=\"_blank\" rel=\"noopener ugc nofollow\">Sign up for free<\/a> and easily track experiments, manage models in production, and visualize your model performance.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"ab ca qm qn qo qp\" role=\"separator\"><span style=\"font-family: var(--wpex-body-font-family, var(--wpex-font-sans)); font-size: var(--wpex-body-font-size, 13px);\">The following text, for instance, would produce the following output scores: \u201cDisneyland is the greatest experience, most amazing attraction in the world!\u201d would equal \u201cneg\u201d: 0.0, \u201cneu\u201d: 0.425, \u201cpos\u201d: 0.575, and \u201ccompound\u201d: 0.8877 as the output values.<\/span><\/div>\n\n\n\n<div class=\"fk fl fm fn fo\">\n<div class=\"ab ca\">\n<div class=\"ch bg ew ex ey ez\">\n<p id=\"240f\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Scores can vary between -1 and 1, with -1 being very negatively skewed and +1 being very positively skewed. The compound score will be used to determine whether or not Disneyland-related reviews are favorable or unfavorable.<\/p>\n<p id=\"4b42\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">The sentiment intensity analyzer will now be initialized, and a lambda function will be created that accepts a text string, and runs the Vader. polarity scores() method on it to obtain the results, and then returns the compound scores. We may add a new compound column to the data frame containing all the compound scores for each review by using Pandas\u2019 apply function.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"9439\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\"><span class=\"hljs-keyword\">from<\/span> nltk.sentiment.vader <span class=\"hljs-keyword\">import<\/span> SentimentIntensityAnalyzer\n<span class=\"hljs-keyword\">import<\/span> nltk\nnltk.download(<span class=\"hljs-string\">'vader_lexicon'<\/span>)\nvader = SentimentIntensityAnalyzer()\n\n<span class=\"hljs-comment\"># Apply lambda function to get compound scores.<\/span>\nfunction = <span class=\"hljs-keyword\">lambda<\/span> title: vader.polarity_scores(title)[<span class=\"hljs-string\">'compound'<\/span>]\nDisney_reviews[<span class=\"hljs-string\">'compound'<\/span>] = Disney_reviews[<span class=\"hljs-string\">'Review_Text'<\/span>].apply(function)\nDisney_reviews.head(<span class=\"hljs-number\">5<\/span>)<\/span><\/pre>\n<h2 id=\"64c7\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 5: Visualizing Sentiments<\/h2>\n<p id=\"7291\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">Let\u2019s examine the distribution of feelings. By generating word clouds, we may better comprehend the frequently used terms. A word cloud often referred to as a text cloud, is a visual representation in which a word gets bigger and bolder the more frequently it appears in the text.<\/p>\n<p id=\"b325\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Let\u2019s use the word cloud plot to visualize every word in the data.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"2a03\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\"><span class=\"hljs-keyword\">from<\/span> wordcloud <span class=\"hljs-keyword\">import<\/span> WordCloud\n<span class=\"hljs-keyword\">import<\/span> seaborn <span class=\"hljs-keyword\">as<\/span> sns\n<span class=\"hljs-keyword\">import<\/span> matplotlib.pyplot <span class=\"hljs-keyword\">as<\/span> plt\n\nallWords = <span class=\"hljs-string\">' '<\/span>.join([twts <span class=\"hljs-keyword\">for<\/span> twts <span class=\"hljs-keyword\">in<\/span> Disney_reviews[<span class=\"hljs-string\">'Review_Text'<\/span>]])\nwordCloud = WordCloud(width=<span class=\"hljs-number\">500<\/span>, height=<span class=\"hljs-number\">300<\/span>, random_state=<span class=\"hljs-number\">21<\/span>, max_font_size=<span class=\"hljs-number\">110<\/span>).generate(allWords)\n\nplt.imshow(wordCloud, interpolation=<span class=\"hljs-string\">\"bilinear\"<\/span>)\nplt.axis(<span class=\"hljs-string\">'off'<\/span>)\nplt.show()<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:379\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg\" alt=\"\" width=\"379\" height=\"241\"><\/figure><div class=\"lw lx re\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:758\/format:webp\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 758w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 379px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:758\/1*otmy-u1uYS7AwXZyNT8ppw.jpeg 758w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 379px\" data-testid=\"og\"><\/picture><\/div>\n<\/figure>\n<p id=\"2230\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">We can see that \u201cride,&#8221; &#8220;park,&#8221; &#8220;Disneyland,&#8221; \u201ctime,\u201d and \u201cday\u201d are the common words that stand out.<\/p>\n<p id=\"4ff1\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">The next step is to add a new column to our data frame called sentiment and to construct a function to calculate the negative (-1), neutral ((0), and positive (+1) feelings.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"d3c5\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\"><span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title.function\">getAnalysis<\/span>(<span class=\"hljs-params\">Rating<\/span>):\n <span class=\"hljs-keyword\">if<\/span> Rating &lt; <span class=\"hljs-number\">0<\/span>:\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-string\">'Negative'<\/span>\n <span class=\"hljs-keyword\">elif<\/span> Rating == <span class=\"hljs-number\">0<\/span>:\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-string\">'Neutral'<\/span>\n <span class=\"hljs-keyword\">else<\/span>:\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-string\">'Positive'<\/span>\n\nDisney_reviews[<span class=\"hljs-string\">'sentiment'<\/span>] = Disney_reviews[<span class=\"hljs-string\">'compound'<\/span>].apply(getAnalysis)\n\nDisney_reviews.head(<span class=\"hljs-number\">5<\/span>)<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<div class=\"mf mg ee mh bg mi\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg\" alt=\"\" width=\"700\" height=\"247\"><\/figure><div class=\"lw lx rf\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*83BgXsjXe7AZ_wC8v7A9lw.jpeg 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"15cc\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Let\u2019s look at the counts for each sentiment type.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"0f7c\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">\nDisney_reviews[<span class=\"hljs-string\">'sentiment'<\/span>].value_counts()<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:293\/1*cWoLMYjLNertGlXf1wkbjg.jpeg\" alt=\"\" width=\"293\" height=\"98\"><\/figure><div class=\"lw lx rg\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:586\/format:webp\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 586w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 293px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:586\/1*cWoLMYjLNertGlXf1wkbjg.jpeg 586w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 293px\" data-testid=\"og\"><\/picture><\/div>\n<\/figure>\n<p id=\"93e1\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">From the info, we can see that the positive numbers are higher than the negatives, which shows that people are really happy about their experience at Disneyland.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"7f9c\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">plt<span class=\"hljs-selector-class\">.title<\/span>('Sentiment Analysis')\nplt<span class=\"hljs-selector-class\">.xlabel<\/span>('Sentiment')\nplt<span class=\"hljs-selector-class\">.ylabel<\/span>('Counts')\nDisney_reviews<span class=\"hljs-selector-attr\">[<span class=\"hljs-string\">'sentiment'<\/span>]<\/span><span class=\"hljs-selector-class\">.value_counts<\/span>()<span class=\"hljs-selector-class\">.plot<\/span>(kind = 'bar')\nplt<span class=\"hljs-selector-class\">.show<\/span>()<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:435\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg\" alt=\"\" width=\"435\" height=\"336\"><\/figure><div class=\"lw lx rh\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:870\/format:webp\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 870w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 435px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:870\/1*MAdNVqPMIwbW3ZODWMKCNA.jpeg 870w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 435px\" data-testid=\"og\"><\/picture><\/div>\n<figcaption class=\"ml mm mn lw lx mo mp be b bf z dw\" data-selectable-paragraph=\"\">Source: Author<\/figcaption>\n<\/figure>\n<p id=\"280e\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Visualize the distribution of sentiments across all reviews.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"7c64\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">Disney_reviews.sentiment.value_counts().plot(kind=<span class=\"hljs-string\">'pie'<\/span>, autopct=<span class=\"hljs-string\">'%1.0f%%'<\/span>,  fontsize=12, figsize=(9,6), colors=[<span class=\"hljs-string\">\"blue\"<\/span>, <span class=\"hljs-string\">\"red\"<\/span>, <span class=\"hljs-string\">\"yellow\"<\/span>])\nplt.ylabel(<span class=\"hljs-string\">\"Disneyland Reviews Sentiment\"<\/span>, size=14)<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:410\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg\" alt=\"\" width=\"410\" height=\"387\"><\/figure><div class=\"lw lx ri\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:820\/format:webp\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 820w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 410px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:820\/1*yD6XUkDZkIm1UXczmKwXvw.jpeg 820w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 410px\" data-testid=\"og\"><\/picture><\/div>\n<figcaption class=\"ml mm mn lw lx mo mp be b bf z dw\" data-selectable-paragraph=\"\">Source: Author<\/figcaption>\n<\/figure>\n<p id=\"f5d6\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Visualize sentiment distribution based on compound scores.<\/p>\n<pre class=\"or os ot ou ov ow ox oy bo oz ba bj\"><span id=\"5d39\" class=\"pa no fr ox b bf pb pc l pd pe\" data-selectable-paragraph=\"\">plt<span class=\"hljs-selector-class\">.figure<\/span>(figsize=(<span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">5<\/span>))\nsns<span class=\"hljs-selector-class\">.histplot<\/span>(Disney_reviews, x='compound', color=\"darkblue\", bins=<span class=\"hljs-number\">10<\/span>, binrange=(-<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">1<\/span>))\nplt<span class=\"hljs-selector-class\">.title<\/span>(\"Disneyland Reiews Sentiment Distribution\")\nplt<span class=\"hljs-selector-class\">.xlabel<\/span>(\"Compound Scores\")\nplt<span class=\"hljs-selector-class\">.ylabel<\/span>(\"\")\nplt<span class=\"hljs-selector-class\">.tight_layout<\/span>()<\/span><\/pre>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:606\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg\" alt=\"\" width=\"606\" height=\"385\"><\/figure><div class=\"lw lx rj\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1212\/format:webp\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 1212w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 606px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1212\/1*t5gPEv2JuqzDtBtY3A5xRA.jpeg 1212w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 606px\" data-testid=\"og\"><\/picture><\/div>\n<figcaption class=\"ml mm mn lw lx mo mp be b bf z dw\" data-selectable-paragraph=\"\">Source: Author<\/figcaption>\n<\/figure>\n<h2 id=\"1ee4\" class=\"pi no fr be np pj pk pl nt pm pn po nx na pp pq pr ne ps pt pu ni pv pw px py bj\" data-selectable-paragraph=\"\">Step 6: Visualizing Results in Comet<\/h2>\n<p id=\"1493\" class=\"pw-post-body-paragraph mq mr fr be b ms ol mu mv mw om my mz na on nc nd ne oo ng nh ni op nk nl nm fk bj\" data-selectable-paragraph=\"\">After running the sentiments, it\u2019s time to view our logged visualization in Comet, and from there we can perform further experiments and also get further insights. So to view the logged visuals, we have to end the experiment.<\/p>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<div class=\"mf mg ee mh bg mi\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg\" alt=\"\" width=\"700\" height=\"257\"><\/figure><div class=\"lw lx rk\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*Gl7HMJE1Dy-xJLOXk4ke9w.jpeg 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<\/figure>\n<figure class=\"or os ot ou ov me lw lx paragraph-image\">\n<div class=\"mf mg ee mh bg mi\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg mj mk c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg\" alt=\"\" width=\"700\" height=\"337\"><\/figure><div class=\"lw lx rl\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*1ifu1sumyZCYQ1cxLII1DA.jpeg 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"ml mm mn lw lx mo mp be b bf z dw\" data-selectable-paragraph=\"\">Source: Author<\/figcaption>\n<\/figure>\n<p id=\"073e\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">We then go further and perform more experiments on our sentiment analysis.<\/p>\n<figure class=\"or os ot ou ov me\">\n<div class=\"rm ii l ee\">\n<div class=\"rn ro l\"><iframe loading=\"lazy\" class=\"eo n ff dy bg\" title=\"Comet Video\" src=\"https:\/\/cdn.embedly.com\/widgets\/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fcs48XTkOKrw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dcs48XTkOKrw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fcs48XTkOKrw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube\" width=\"854\" height=\"480\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<\/div>\n<\/figure>\n<p id=\"fe38\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">There were 100 reviews in all. The overwhelming majority of evaluations are favorable about Disneyland. 90% of the opinions are positive, 9% are negative, and 1% are neutral. These findings lead me to believe that Disneyland will undoubtedly be a wonderful destination to come and unwind.<\/p>\n<p id=\"7ff3\" class=\"pw-post-body-paragraph mq mr fr be b ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm fk bj\" data-selectable-paragraph=\"\">Thank you for reading; you can find the complete <a class=\"af oq\" href=\"https:\/\/github.com\/olujerry\/olujerry\/blob\/main\/Sentiment_Analyis_In_Comet.ipynb\" target=\"_blank\" rel=\"noopener ugc nofollow\">tutorial code here<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Source:datascientist.com Sentiment analysis, commonly referred to as \u201copinion mining,\u201d is the method of drawing out irrational information from written or spoken words. The study of how people communicate their thoughts, beliefs, and feelings through language is a fast-expanding area of natural language processing (NLP). Customer service, marketing, and political analysis are just a few of [&hellip;]<\/p>\n","protected":false},"author":99,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"customer_name":"","customer_description":"","customer_industry":"","customer_technologies":"","customer_logo":"","footnotes":""},"categories":[9,7],"tags":[],"coauthors":[197],"class_list":["post-8031","post","type-post","status-publish","format-standard","hentry","category-product","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tracking Your Sentiment Analysis With Comet - Comet<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tracking Your Sentiment Analysis With Comet\" \/>\n<meta property=\"og:description\" content=\"Source:datascientist.com Sentiment analysis, commonly referred to as \u201copinion mining,\u201d is the method of drawing out irrational information from written or spoken words. The study of how people communicate their thoughts, beliefs, and feelings through language is a fast-expanding area of natural language processing (NLP). Customer service, marketing, and political analysis are just a few of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\" \/>\n<meta property=\"og:site_name\" content=\"Comet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cometdotml\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-25T22:46:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T17:05:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg\" \/>\n<meta name=\"author\" content=\"Jeremiah Oluseye\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Cometml\" \/>\n<meta name=\"twitter:site\" content=\"@Cometml\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeremiah Oluseye\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Tracking Your Sentiment Analysis With Comet - Comet","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:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet","og_locale":"en_US","og_type":"article","og_title":"Tracking Your Sentiment Analysis With Comet","og_description":"Source:datascientist.com Sentiment analysis, commonly referred to as \u201copinion mining,\u201d is the method of drawing out irrational information from written or spoken words. The study of how people communicate their thoughts, beliefs, and feelings through language is a fast-expanding area of natural language processing (NLP). Customer service, marketing, and political analysis are just a few of [&hellip;]","og_url":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet","og_site_name":"Comet","article_publisher":"https:\/\/www.facebook.com\/cometdotml","article_published_time":"2023-10-25T22:46:03+00:00","article_modified_time":"2025-04-24T17:05:12+00:00","og_image":[{"url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg","type":"","width":"","height":""}],"author":"Jeremiah Oluseye","twitter_card":"summary_large_image","twitter_creator":"@Cometml","twitter_site":"@Cometml","twitter_misc":{"Written by":"Jeremiah Oluseye","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#article","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\/"},"author":{"name":"Jeremiah Oluseye","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/73f233b4e35ab400cb753ebd29e58621"},"headline":"Tracking Your Sentiment Analysis With Comet","datePublished":"2023-10-25T22:46:03+00:00","dateModified":"2025-04-24T17:05:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\/"},"wordCount":1394,"publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg","articleSection":["Product","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet\/","url":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet","name":"Tracking Your Sentiment Analysis With Comet - Comet","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#primaryimage"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg","datePublished":"2023-10-25T22:46:03+00:00","dateModified":"2025-04-24T17:05:12+00:00","breadcrumb":{"@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#primaryimage","url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg","contentUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*T5rVX0mmDf6lh0xphGT0Og.jpeg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.comet.com\/site\/blog\/tracking-your-sentiment-analysis-with-comet#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.comet.com\/site\/"},{"@type":"ListItem","position":2,"name":"Tracking Your Sentiment Analysis With Comet"}]},{"@type":"WebSite","@id":"https:\/\/www.comet.com\/site\/#website","url":"https:\/\/www.comet.com\/site\/","name":"Comet","description":"Build Better Models Faster","publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.comet.com\/site\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.comet.com\/site\/#organization","name":"Comet ML, Inc.","alternateName":"Comet","url":"https:\/\/www.comet.com\/site\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","width":310,"height":310,"caption":"Comet ML, Inc."},"image":{"@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cometdotml","https:\/\/x.com\/Cometml","https:\/\/www.youtube.com\/channel\/UCmN63HKvfXSCS-UwVwmK8Hw"]},{"@type":"Person","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/73f233b4e35ab400cb753ebd29e58621","name":"Jeremiah Oluseye","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/image\/5534a0faf067d6eb66a7f0c328629fbf","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/10\/cropped-mBj9qH7g_400x400-96x96.jpg","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/10\/cropped-mBj9qH7g_400x400-96x96.jpg","caption":"Jeremiah Oluseye"},"url":"https:\/\/www.comet.com\/site\/blog\/author\/oluseyejeremiahgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/8031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/users\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/comments?post=8031"}],"version-history":[{"count":1,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/8031\/revisions"}],"predecessor-version":[{"id":15485,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/8031\/revisions\/15485"}],"wp:attachment":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/media?parent=8031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/categories?post=8031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/tags?post=8031"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/coauthors?post=8031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}