Skip to content

jhabarsingh/HATE-SPEECH-DETECTION

Repository files navigation

⚡ 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

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.