This is just a visualization of biased and debiased word embeddings on tensorboard Embedding Projector using https://github.com/tolga-b/debiaswe
Man is to computer programmer as woman is to homemaker? debiasing word embeddings -T Bolukbasi, KW Chang, JY Zou, V Saligrama, AT Kalai - Advances in neural information processing systems, 2016
https://drive.google.com/file/d/1G59RLXTakURUn9nBDkKddXRA1i-c2IQR/view?usp=sharing
Use the above link to download the pickled biased and de-biased word embeddings. The word embeddings have been formatted in such a way that they are compatible with the tensorboard embedding projector.
Commands to visualize:-
- tensorboard --logdir runs/biased
- tensorboard --logdir runs/debiased --port=8080
- cd into the website directory
- python -m http.server
- See the results on the web browser on localhost and port number on which http.server is running.