What are the current approaches for analyzing emotions within a piece of text? Which tools and Python packages should you use for sentiment analysis? This week, Jodie Burchell, developer advocate for data science at JetBrains, returns to the show to discuss modern sentiment analysis in Python.
Jodie holds a PhD in clinical psychology. We discuss how her interest in studying emotions has continued throughout her career.
In this episode, Jodie covers three ways to approach sentiment analysis. We start by discussing traditional lexicon-based and machine-learning approaches. Then, we dive into how specific types of LLMs can be used for the task. We also share multiple resources so you can continue to explore sentiment analysis on your own.
This week’s episode is brought to you by Sentry.
Course Spotlight: Learn Text Classification With Python and Keras
In this course, you’ll learn about Python text classification with Keras, working your way from a bag-of-words model with logistic regression to more advanced methods, such as convolutional neural networks. You’ll see how you can use pretrained word embeddings, and you’ll squeeze more performance out of your model through hyperparameter optimization.
00:00:00 – Introduction00:02:31 – Conference talks in 202400:04:23 – Background on sentiment analysis and studying feelings00:07:09 – What led you to study emotions?00:08:57 – Dimensional emotion classification00:10:42 – Different types of sentiment analysis00:14:28 – Lexicon-based approaches00:17:50 – VADER - Valence Aware Dictionary and sEntiment Reasoner00:19:41 – TextBlob and subjectivity scoring 00:21:48 – Sponsor: Sentry00:22:52 – Measuring sentiment of New Year’s resolutions00:27:28 – Lexicon-based approaches links for experimenting00:28:35 – Multiple language support in lexicon-based packages 00:35:23 – Machine learning techniques00:39:20 – Tools for this approach00:42:54 – Video Course Spotlight00:44:15 – Advantages to the machine learning models approach 00:45:55 – Large language model approach00:48:44 – Encoder vs decoder models00:52:09 – Comparing the concept of fine-tuning00:56:49 – Is this a recent development?00:58:08 – Ways to practice with these techniques01:00:10 – Do you find this to be a promising approach?01:07:45 – Resources to practice with all the techniques01:11:06 – Upcoming conference talks01:11:56 – Thanks and goodbyeIntroduction to Sentiment Analysis in Python - The PyCharm BlogHow to Do Sentiment Analysis With Large Language Models - The PyCharm BlogTalks - Jodie Burchell: Lies, damned lies and large language models - YouTubeMirror, mirror: LLMs and the illusion of humanity - Jodie Burchell - YouTubeSeparating fact from fiction in a world of AI fairytales - Jodie Burchell - NDC London 2024 - YouTubeHurt Feelings (Rap Version) - Flight Of The Conchords (Lyrics) - YouTubeUniversal Emotions - What are Emotions? - Paul Ekman GroupVADER - nltk.sentiment.vader moduleclips/pattern: Web mining module for Python, with tools for scraping, natural language processing, machine learningTextBlob: Simplified Text Processing — TextBlob documentationPower vs. Force: The Hidden Determinants of Human Behavior by David R. Hawkins - GoodreadsEpisode #36: Sentiment Analysis, Fourier Transforms, and More Python Data Science – The Real Python PodcastUse Sentiment Analysis With Python to Classify Movie Reviews – Real PythonSentiment Analysis: First Steps With Python’s NLTK Library – Real PythonSentiment Analysis in DataSpell with @JetBrainsTV - YouTubeEpisode #119: Natural Language Processing and How ML Models Understand Text – The Real Python PodcastspaCy - Industrial-strength Natural Language Processing in Pythonamazon_polarity - Datasets at Hugging FaceIntroduction to Sentiment Analysis in Python - The PyCharm BlogKaggle: Your Machine Learning and Data Science CommunityZS BITAI Community Day - 10 December 2024Jodie Burchell - The JetBrains BlogJodie Burchell’s Blog - Standard errorJodie Burchell 🇦🇺🇩🇪 (@t_redactyl) - TwitterJodie Burchell (@t-redactyl.bsky.social) — BlueskyJodie Burchell 🇦🇺🇩🇪 (@[email protected]) - FosstodonJetBrains: Essential tools for software developers and teamsLevel up your Python skills with our expert-led courses:
Data Cleaning With pandas and NumPyLearn Text Classification With Python and KerasExploring Astrophysics in Python With pandas and Matplotlib Support the podcast & join our community of Pythonistas