imskr / reFlair

Reddit Flair Detection Web Application for r/india

Home Page:https://reflair.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

Reddit Flair Detection Web Application for r/india.


License Stargazers Twitter Follow

Created by Shubham Kumar


Work in Progress - Testing

Local Set-up

  • Linux
    $ git clone https://github.com/imskr/reFlair.git
    $ cd reflair
    $ python3 -m venv env_name
    $ source env_name/bin/activate
    $ pip3 install -r requirements.txt
    $ python3 app.py

Go to http://127.0.0.1:5000 to test your app

Note: If you have fish terminal run $ source env_name/bin/activate.fish

  • Windows
    $ git clone https://github.com/imskr/reFlair.git
    $ cd reflair
    $ pip3 install -r requirements.txt
    $ python3 app.py

Go to http://localhost:5000 to test your app

Data (r/india)

  • Data fetched using PRAW reddit API.

  • Flairs supporting (currently 14)

  • Note: na is added for unlabeled flair

    Label Flair Samples(Clean)
    1. AskIndia 754
    2. Business/Finance 1688
    3. CAA-NRC-NPR 77
    4. Food 99
    5. Non-Political 1355
    6. Policy/Economy 113
    7. Politics 468
    8. Scheduled 1419
    9. Science/Technology 11
    10. Coronavirus 44
    11. Sports 3232
    12. Photography 88
    13. TIL 11
    14. Unverified 55
    15. na 121
  • Distribution Graph


plot

Training Algorithms

  • Title+Body+URL as Feature title tbu

References

About

Reddit Flair Detection Web Application for r/india

https://reflair.herokuapp.com

License:MIT License


Languages

Language:Python 64.9%Language:JavaScript 35.1%