Skip to content

Reddit bot that detects Hindi-English code-mixed hate speech in comments in real-time, replies with 3 warnings and then permanently bans user

License

Notifications You must be signed in to change notification settings

AindriyaBarua/anti-hate-reddit-Hinglish-bot-with-PRAW-and-BERT

Repository files navigation

anti-hate-reddit-bot-with-PRAW-and-BERT

This was the POC work for a much improved version which has been built now under the name Project Shhor and has won an International Hackathon by United Nations Populations Fund: https://www.shhorai.com

This is a reddit bot that detects hate speech in hindi-english code mixed comments in a subreddit, and warns the user posting hate speech upto three times and then permanently bans the user with a message.

The detection is done with distil-bert model built on hindi-english code mixed dataset of 12433 annotated sentences.

Detailed blog on the project:

https://medium.com/@barua.aindriya/reddit-bot-to-fight-hindi-english-code-mixed-hate-speech-with-bert-214624392c3a

Demo:

https://www.reddit.com/r/nlptestsubreddit/comments/q95m15/india_itna_intolerant_ho_raha_hai_din_bar_din/

Functionality:

bot drawio (1)

About

Reddit bot that detects Hindi-English code-mixed hate speech in comments in real-time, replies with 3 warnings and then permanently bans user

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages