This repository contains the code for our paper "“Call me sexist, but...” : Revisiting Sexism Detection Using Psychological Scales and Adversarial Samples".
The repository comprises of the scripts used to generate the results in the paper. You can download the data from here and unzip it in the data folder.
To run the code:
- go to the code folder
- install requirements from 'requirements.txt'
- To reproduce the machine learning models, run 'classifiy.py'
- To get the tables and figures, run the notebook 'get results.ipynb'
In addition to the code, we also release the files we used for our Amazon Mechanical Turk task in the 'mturk_task' folder.
If you use the code, please cite the following paper:
@inproceedings{samory2021sexism,
title={Call me sexist, but...: Revisiting Sexism Detection Using Psychological Scales and Adversarial Samples.},
author={Samory, Mattia and Sen, Indira and Kohne, Julian and Fl{\"o}ck, Fabian and Wagner, Claudia},
booktitle={Proceedings of the Fifteenth International Conference on Web and Social Media},
year={2021},
publisher={AAAI Press}}