jhabarsingh / HATE-SPEECH-DETECTION

Ml model to detect hate speech and offensive language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HATE-SPEECH-DETECTION ⚡️ License: MIT GitHub stars GitHub contributors GitHub issues GitHub forks

⚡ TECH STACK

About

HATE-SPEECH-DETECTION is a Web app built using Django and Vuejs. Uses Recurrent neural network LSTM algorithm to detect hatespeech in a text. Hate speech detector can be used as a middleware between the servers and a client. Now a days we see many hatefull comments on social sites so having a detector like this can stop the hate spread to a large extend.

Preview

Preview

Django Backend Setup

Django Apis

Using venv

git clone https://github.com/jhabarsingh/HATE-SPEECH-DETECTION.git 
cd HATE-SPEECH-DETECTION
python3 -m venv env # Python 3.6.9 or 3.7.0 version 
source env/bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver

Using conda

git clone https://github.com/jhabarsingh/HATE-SPEECH-DETECTION.git 
cd HATE-SPEECH-DETECTION
conda create -n hatespeech python==3.7 
conda activate hatespeech
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver

Using Docker

sudo apt-get install docker docker-compose # Install docker, docker-compose on linux
git clone https://github.com/jhabarsingh/HATE-SPEECH-DETECTION.git
cd HATE-SPEECH-DETECTION
sudo docker-compose up

Vuejs Setup

Install node | Install vue/cli

 git clone https://github.com/jhabarsingh/HATE-SPEECH-DETECTION.git
 cd HATE-SPEECH-DETECTION
 npm install   # Nodejs should be installed
 npm run start # Vuejs should be installed

Want To Contribute

You can contribute to this project in many ways

  1. You can create an issue if you find any bug.
  2. You can work on an existing issue and Send PR.
  3. You can make changes in the design if it is needed.
  4. Even if you find any grammatical or spelling mistakes then also you can create an issue.

I would be glad to see a notification saying User {xyz} created a Pull Request. I promise to review it.

About

Ml model to detect hate speech and offensive language

License:MIT License


Languages

Language:Python 53.8%Language:Vue 29.5%Language:JavaScript 10.6%Language:HTML 4.4%Language:Shell 1.1%Language:Dockerfile 0.6%