GithubHelp home page GithubHelp logo

shree-prada / reddit-sarcasm-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 19.87 MB

Predicting sarcasm in Reddit comments using a machine learning model

Python 71.74% HTML 28.26%
data-analysis data-visualization machine-learning python feature-extraction natural-language-processing pandas text-classification tokenization

reddit-sarcasm-prediction's Introduction

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.

reddit-sarcasm-prediction's People

Contributors

mkv18 avatar shree-prada avatar jasleenkaur111 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.