Skip to content

Using Reddit AITA posts to build a Moral Evaluation Tool

Notifications You must be signed in to change notification settings

vennietweek/aita-analysis-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morality in the Digital Age: Predictive Modelling on AITA Subreddit Posts

Project Team 5's Submission for CS5246, taken in AY23/24 S2 at the National University of Singapore.

Objectives

The "Am I the A******?" (AITA) subreddit provides a rich source of real-world scenarios where individuals seek moral guidance from an online community regarding their behaviour. In this project, we aim to develop a predictive model to anticipate the likely moral judgement (e.g., "You’re the A******" or "Not the A******") of a given situation based on the text of AITA subreddit posts.

The primary objective of this project is to build a predictive model capable of discerning the moral judgement associated with AITA subreddit posts. By analysing the textual content of these posts, our model will strive to accurately predict whether the individual in the scenario is perceived as acting morally or immorally by the community.

Report

The report for this project can be accessed here: https://drive.google.com/file/d/1kFISHVbWY9H6KmZww0oM_OK_VsLqF0Bf/view?usp=sharing

Dataset Files

Model Experimentation

Our systematic exploration of diverse modelling approaches, encompassing both traditional machine learning algorithms and cutting-edge deep learning architectures includes :

  • Traditional ML: Deployed classical machine learning algorithms such as Naive Bayes and Logistic Regression for classification. Data preprocessing steps include handling of contractions, stopword removal, lemmatisation and TF-IDF representation.
  • Ensemble Learning: Using a mix of traditional ML + rule-based approaches to create an Ensemble model.
  • Recurrent and Convolutional Neural Networks: Bi-LSTMs, CNNs to capture sequential dependencies in text data and perform classification.
  • Transformer-based Models: A fine-tuned BERT model.

Members

Installation Instructions

  1. Set up an empty folder and clone the repository into your folder
git clone https://github.com/vennietweek/aita-analysis-tool.git
  1. Initialise virtual environment in the project root folder:
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Upgrade pip:
pip install --upgrade pip setuptools wheel
  1. Install project dependencies:
pip install -r requirements.txt

About

Using Reddit AITA posts to build a Moral Evaluation Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •