Skip to content

Yupei-Du/bias-in-wat

Repository files navigation

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.

About

Exploring Human Gender Stereotypes with Word Association Test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages