Skip to content

shree-prada/Reddit-Sarcasm-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 

Repository files navigation

Reddit Sarcasm Prediction

This project contains a machine learning model for predicting sarcasm in Reddit posts. The model uses a dataset of Reddit posts and corresponding sarcasm labels to identify sarcastic comments.

Project Description

This project is a machine learning model for predicting sarcasm in Reddit posts. The dataset used for this project contains Reddit posts and corresponding sarcasm labels, which are used to train the model. The trained model can then be used to predict whether a new Reddit post is sarcastic or not.

The project includes a Jupyter notebook with the following:

  1. Data exploration and preprocessing
  2. Model training and evaluation
  3. Model deployment

Data Sources

https://www.kaggle.com/datasets/sherinclaudia/sarcastic-comments-on-reddit

Technologies Used

Getting Started

To get started with the project, follow these steps:

  1. Clone the repository: git clone https://github.com/shree-prada/Reddit-Sarcasm-Prediction.git
  2. Install the required dependencies
  3. Explore the Jupyter notebook and follow the steps to train and evaluate the model.

Model

The machine learning model used for this project is a Custom LSTM. The model is trained on the training set and evaluated on the testing set.

Results

The model achieved an accuracy of 62% on the testing set.

Contribution Guidelines

We welcome contributions to the project. If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your forked repository.
  5. Submit a pull request to the original repository.

########################################

In order to run the code make sure you pre-install all the dependencies such as LIME, Flask etc.