Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

CMPUT 497 Project: SemEval 2019 Task 5 Shared Task on Multilingual Detection of Hate

Notifications You must be signed in to change notification settings

michaellzc/semeval2019_task5_hateval

Repository files navigation

cmput497_hateval

Prerequisites

  • Python3.7
  • virtualenv

Setup

Download glove.twitter.27B.zip from stanfordnlp/GloVe and unzip to .vector_cache

# Setup python virtual environment
$ virtualenv venv --python=python3
$ source venv/bin/activate

# Install python dependencies
$ pip install -r requirements.txt

How to run

You may either run the ipynb jupyter notebook on Colab with GPU acclerator (Recommend)

Or do it locally (DON'T since it will take forever unless you have a CUDA-enabled GPU)

$ python semeval2019_task5_hateval_final.py

Config

You may modify the TrainParameters class to train classifier for different labels and different weight intilization presets. See comment for detail

Authors

  • Yonael Bekele
  • Michael Lin
  • Helen Zhao

About

CMPUT 497 Project: SemEval 2019 Task 5 Shared Task on Multilingual Detection of Hate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published