Git Product home page Git Product logo

commentiquette's Introduction

Commentiquette

Inspired by Erik Hoffstad's Internet Comment Etiquette.

Under the Hood

It's a simple RNN model built in Tensorflow and Keras, containing three layers: an Embedding layer, a GRU layer, and a hidden (dense) layer. It's trained on datasets I make myself using the Youtube V3 API for comments. The whole thing is put in some funky Flask framework, and tied together with some glue and sticks at the end.

Running it Locally

Literally just do python app.py

As for currently model training yourself, start by moving to the youtube-api-parsing subdirectory (cd youtube-api-parsing) and changing the videoId to the video id of your choice (the string at the end of a YouTube URL). This will create a file that looks like {your video id}.txt in the appropriate folder.

After that, return to the main directory (cd ..') and go to models.py and change the videoId to the same one used earlier and then run python models.py. You can always change the data, model, or # of epochs, etc. 100 takes a while, make sure you have a good CUDA-enabled GPU (not like me). This one should train the model using the data you created earlier (the .txt) and then save the trained model in {your video id}.h5 in the appropraite folder.

At this point you're probably wondering how the videoId thing is pretty tedious. Yeah, don't think I didn't realize either. I plan to have a secure/personal front-end option for this, that doesn't use a bunch of CLI and videoId manual changes.

commentiquette's People

Contributors

t-chris avatar

Stargazers

 avatar

Watchers

 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.