<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yolanda Yasyifa Basrul on Medium]]></title>
        <description><![CDATA[Stories by Yolanda Yasyifa Basrul on Medium]]></description>
        <link>https://medium.com/@yyasyifa?source=rss-6d1330fee707------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LOcZmvgb6b1DbU8b</url>
            <title>Stories by Yolanda Yasyifa Basrul on Medium</title>
            <link>https://medium.com/@yyasyifa?source=rss-6d1330fee707------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:56:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yyasyifa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Aspect-Based Sentiment Analysis: A Deep Dive into Review Data with Python]]></title>
            <link>https://medium.com/@yyasyifa/understanding-aspect-based-sentiment-analysis-a-deep-dive-into-review-data-with-python-85a69495bcc8?source=rss-6d1330fee707------2</link>
            <guid isPermaLink="false">https://medium.com/p/85a69495bcc8</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[absa]]></category>
            <category><![CDATA[customer-review-analysis]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[python-for-data-science]]></category>
            <dc:creator><![CDATA[Yolanda Yasyifa Basrul]]></dc:creator>
            <pubDate>Thu, 08 May 2025 09:58:42 GMT</pubDate>
            <atom:updated>2025-05-08T09:58:42.190Z</atom:updated>
            <content:encoded><![CDATA[<p>Every day, millions of people write reviews — about food, service, products, or their experiences. But did you know that not all opinions are expressed in a single tone?</p><p>For example:</p><blockquote>“The food was delicious, but the service was terrible.”</blockquote><p>This sentence contains <strong>two different sentiments</strong> about <strong>two different aspects</strong>. And that’s something regular sentiment analysis often fails to capture.</p><p>In this article, I’ll walk you through how I implemented Aspect-Based Sentiment Analysis<strong> (ABSA)</strong> in Python, based on a small project I worked on using Google Colab.</p><h3>What is Aspect-Based Sentiment Analysis?</h3><p>ABSA is an advanced NLP (Natural Language Processing) technique that doesn’t just classify whether a sentence is positive or negative — it identifies <strong>which aspect</strong> the sentiment refers to.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*YpqW3fvTvFR88Y8xeWZ2DA.png" /></figure><h3>Step-by-Step Implementation of ABSA</h3><h3>1. Data Preparation</h3><p>Start by importing a .csv file containing user reviews. These reviews are cleaned to remove unnecessary characters, punctuation, and stopwords to make the data ready for analysis.</p><p><em>Tools: pandas, re (regex), string</em></p><pre>def clean_text(text):<br>    # custom cleaning: lowercasing, remove punctuation, etc.</pre><h3>2. Identifying Aspects and Adjectives</h3><p>Use a rule-based dependency parsing method via spaCy:</p><ul><li>Tokenize the sentences.</li><li>Extract nouns as aspect terms.</li><li>Look for adjectives (e.g., “delicious”, “bad”) syntactically linked to those nouns.</li><li>Use a sentiment lexicon (from NLTK) to label the adjectives as positive or negative.</li></ul><p><em>Tools: spaCy, NLTK’s opinion lexicon</em></p><pre>for token in doc:<br>    if token.dep_ == &#39;amod&#39; and token.head.pos_ == &#39;NOUN&#39;:<br>        # extract aspect and sentiment</pre><p>Example output :</p><pre>Sentence: &quot;The food was tasty but the service was poor&quot;<br>→ Aspect: food - Sentiment: positive<br>→ Aspect: service - Sentiment: negative</pre><h3>3. Visualizing the Result</h3><p>Count the number of positive/negative sentiments for each aspect and visualize them using bar charts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*j41rcByrDPluMBW3ECoQsw.png" /></figure><h3>When is This Technique Useful?</h3><ul><li>For <strong>brand monitoring</strong>: Understand what customers like or complain about.</li><li>For <strong>user feedback analysis</strong> in apps or surveys.</li><li>For <strong>market or social research</strong>, especially when analyzing opinionated data.</li></ul><p>Aspect-Based Sentiment Analysis offers sharper insights compared to standard sentiment analysis. With Python and the right NLP libraries, we can dig deep into public opinion and find out <em>not just how people feel — but about what</em>.</p><p><em>“It’s not just about whether people are happy — it’s about what exactly they’re happy (or unhappy) with.”</em></p><h3>Ready to Explore More?</h3><p>View the complete code in this Google Colab notebook:<br> 👉 <a href="https://colab.research.google.com/drive/1Tg40FpmIUmiWtKV1AxrS9w1Nt25bC_TA?usp=sharing">Click here to open the notebook</a></p><p>Also, feel free to explore the project further by cloning it to your GitHub portfolio for future development:<br> 👉 <a href="https://github.com/yyasyifa/Traveloka_Review_Insight.git">GitHub Repository</a></p><h3>About the Author</h3><p>I’m Yolanda, a statistics student passionate about social data, NLP, and interactive visualizations. This article is part of my exploration into modeling public opinion from text data.</p><p>📫 Let’s connect on my <a href="http://www.linkedin.com/in/yolanda-yasyifa-5210ba2a4">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85a69495bcc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>