/op-hate-nlp

Training code and public data for the paper "A Legal Approach to Hate Speech - Operationalizing the EU's Legal Framework against the Expression of Hatred as an NLP Task"

Primary LanguagePython

A Legal Approach to Hate Speech - Operationalizing the EU's Legal Framework against the Expression of Hatred as an NLP Task

Training code and public data for the paper "A Legal Approach to Hate Speech - Operationalizing the EU's Legal Framework against the Expression of Hatred as an NLP Task"

Running the Code

If you have Anaconda installed and in your environment, you can execute the run.sh script.

If you are using pip, install the dependencies listed in environment.yml manually. Then run python train.py to train the model and python eval.py to evaluate the model's performance.

NOTE: This repository contains only the made-up section of the final dataset, as explained in the paper under Section Ethical Considerations / Release of the Data.