The project predicts the flairs of posts on india subreddit.
Analysing and predicting flairs for reddit posts on india subreddit.
Built with
Dyanamic webpage! works with Ajax thus don't have to reload the page :D
do pip install -r requirements.txt
just get any link of a post from https://www.reddit.com/r/india with flair among Science/Technology, Business/finance, political, non-political, [R]eddiquette, AskIndia paste the url in predict tab and press enter, and wait for the magic :D
- just clone the repo.
- Set up a python 3 virtual environment.
- download the requirements by pip3 install -r requirements.txt
- open you terminal and run main.py
- it gets a set of 10000 new posts from reddit, and gets all the information about the posts then cleans the data, the final cleaned data is stored in the file train.json
- then it starts training on that data and saves the trained model as model.pkl
- Run app.py on the terminal
- open your browser,on the link shown in your terminal
├── app.py
├── post_info.py
├── main.py
├── get_ids.py
├── get_info.py
├── normalise_data.py
├── cleaning_data.py
├── train.py
├── Templates
│ ├── base.html
│ ├── index.html
│ ├── predict.html
|
├── Static
| ├── style.css
|
├── nltk.txt
|
├── test.json
├── full_data.json
├── id.json
├── README.md
├── package.json
└── .gitignore
MIT © [Nikunj Singhal]()