Reddit bot which replies to sarcastic comments
Using above Features and Preprocessing 4 models are trained,
If a comment is predicted as 'sarcastic' by 3 out 4 models, it is treated as sarcastic.
classifier.py
- Training and Testing Modelsbot.py
- Reddit Botcli_bot.py
- A Command Line Interactive Interface for the Reddit Botmain.ipynb
- iPython Notebook led to the final model hypothesisRegister for new Reddit App here and fill details (username, password, client id, client secret) under name 'bot1' in praw.ini
Run classifier.py
with Python 3(Optional) or use pretrained models
Run bot.py
with Python 3 for the automated Reddit Bot
Run cli_bot.py
with Python 3 for an interactive version of the Reddit Bot.
That's it.
Logs can accessed at comment.log
How to fill praw.ini
Final accuracy of models are in final_accuracy.txt
Dataset is available in container
Downloaded from here