Skip to content

This repository provides a comprehensive solution for analyzing and evaluating comments from top Reddit posts, specifically from the r/politics subreddit. The project focuses on assessing the moral dimensions of comments using advanced text processing and machine learning techniques.

Notifications You must be signed in to change notification settings

AliakbarMehdizadeh/Reddit-PoliticalInsights-Moral

Repository files navigation

Reddit Comment Moral Analysis

This repository provides a comprehensive solution for analyzing and evaluating comments from top Reddit posts, specifically from the r/politics subreddit. The project focuses on assessing the moral dimensions of comments using advanced text processing and machine learning techniques.

Key Components:

  • DataGatherer: Gathers and organizes comments from Reddit posts.
  • Preprocessing: Cleans and processes text data.
  • MoralCentroids: Calculates moral scores using custom vectors and embeddings.
  • MoralScoreAnalyzer: Analyzes and visualizes moral scores with statistical and graphical methods.

Usage

  1. Clone the repository.
  2. Run pip3 install -r requirements.txt.
  3. Get your credentials from Reddit and add them to credentials.py.
  4. Edit config.py.
  5. Run python main.py.

This project is ideal for those interested in text analysis, sentiment evaluation, and moral dimension analysis of social media content.

Screenshot Screenshot

About

This repository provides a comprehensive solution for analyzing and evaluating comments from top Reddit posts, specifically from the r/politics subreddit. The project focuses on assessing the moral dimensions of comments using advanced text processing and machine learning techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages