Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1 KB

README.md

File metadata and controls

38 lines (32 loc) · 1 KB

Bias in WAT

Setup Environment

conda create -n py37_venv python=3.7
conda activate py37_venv
pip install -r requirements.txt

Data Preparation

Download data from Google drive.

Please note that data themselves are licensed under Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. They cannot be redistributed or used for commercial purposes.

mkdir data/
mv data-file-just-downloaded data/SWOW-EN.R100.csv.zip
unzip data/SWOW-EN.R100.csv.zip -d data/

Preprocess

Pre-process the raw data.

python preprocess.py

Stereotype Propagation

Run stereotype propagation algorithm. You could specify the GPU device here. Use CPU as default.

python stereotype_propagation.py [--gpu 0]

Lexicon

The stereotype lexicon is at data/stereotype_lexicon.txt.