Hate-Speech-Detection-Project / hate_detector

A nlp framework to find hate speech comments out of a comments corpus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hate-Speech Detection Framework

Run the framework using Docker

docker build -t hate_speech_framework .
docker run -t hate_speech_framework

Run the framework directly

# Setup virtualenv with python 3
python3 -m venv venv
source venv/bin/activate # assumes using bash

# Install requirements
pip install -r requirements.txt

# Install nltk data
mkdir -p nltk
NLTK_DATA=./nltk
python -m nltk.downloader stopwords

# Run framework
python .

Add datasets

  • add a folder to /data containing a test.csv and a train.csv (look at the test folder for samples)
  • add the name of the dataset folder to the main.py (line 49)

About

A nlp framework to find hate speech comments out of a comments corpus.


Languages

Language:Python 100.0%