Neutralizing Biased Text
This repo contains code for the paper, "Automatically Neutralizing Subjective Bias in Text".
Concretely this means algorithms for
- Identifying biased words in sentences.
- Neutralizing bias in sentences.
$ pip install -r requirements.txt $ python >> import nltk; nltk.download("punkt")
Click this link to download (100MB, expands to 500MB).
harvest/: Code for making the dataset. It works by crawling and filtering Wikipedia for bias-driven edits.
src/: Code for training models and using trained models to run inference. The models implemented here are referred to as
CONCURRENT in the paper.
src/README.md for bias neutralization directions.
harvest/README.md for making a new dataset (as opposed to downloading the one available above).