Giter VIP home page Giter VIP logo

asshole-classifier's Introduction

asshole-classifier

Not an image classifier - an NLP project for Reddit's Am I The Asshole subreddit.

Goals

  • create data set from reddit posts
    • pull posts from API
    • label the posts by using the comments as votes (rules-based keyword approach)
    • evaluate approach on small subset of data
  • create an AssholeClassifier
    • document classification task: given the post, classify as asshole or not
  • create a reddit bot that comments with the prediction
    • create a feedback loop for data annotation
  • I don't know, maybe get published?

Project organization

preprocess.py takes the raw data and performs any necessary preprocessing. Outputs are found in data/processed.

train.py is the script used to train the model on the data

inference.py is used to load the model and classify new instances.

models holds all the model architectures we've tried.

installation

  1. create a virtual environment.
    python3 -m venv venv_classhole
    source venv_classhole/bin/activate
    
  2. activate your environment. On mac, use
    source venv_classhole/bin/activate
    
    On Windows, use
    venv_classhole\Scripts\activate
    
  3. Install dependencies
    pip install -r requirements.txt
    

asshole-classifier's People

Contributors

jambran avatar diffeo-chris avatar

Stargazers

Kyle Boerstler avatar

Watchers

James Cloos 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.