This repository contains a Jupyter notebook that demonstrates how to perform sentiment analysis on Reddit posts related to mental health using Python and the TextBlob library.
This project involves analyzing the sentiment of mental health-related discussions on Reddit. We make use of the TextBlob library, which is a popular Python library for processing textual data.
The objective is to understand the overall sentiment (positive, negative, or neutral) of the discussions and the level of subjectivity (objective or subjective) in these discussions. The analysis is based on a dataset containing mental health-related posts from various Reddit subreddits.
The Jupyter notebook is divided into five main sections:
Importing Necessary Libraries Loading the Dataset Data Preprocessing Sentiment Analysis using TextBlob Visualizing Sentiment Analysis Results
To run this notebook:
Clone this repository to your local machine. Open the Jupyter notebook in an environment that supports Python. Ensure that you have all the required dependencies installed (see the "Importing Necessary Libraries" section in the notebook). Run all cells in the notebook.
The dataset used in this project is a collection of mental health-related posts from various Reddit subreddits. The dataset includes the title, content, and subreddit of each post.
You can download the dataset here.
Python pandas numpy matplotlib seaborn TextBlob Google Colab
This project is open-sourced under the MIT License. See LICENSE for details.
This project was inspired by the need to understand the sentiment surrounding mental health discussions on popular online platforms. The aim is to provide insights that can potentially inform strategies for mental health advocacy and intervention.