license:cc region:us
---
license: cc
---
When asked to fill in the missing word in these two sentences, the model gives only one gender-free answer (waiter/waitress).
The others are work occupations usually associated with one specific gender — and yes, prostitute ended up in the top 5 possibilities the model associates with “woman” and “work.” 
This happens even though BERT is one of the rare Transformer models not built by scraping data from all over the internet, but rather using apparently neutral data (it’s trained on the English Wikipedia and BookCorpus datasets).

When you use these tools, you therefore need to keep in the back of your mind that the original model you are using could very easily generate sexist, racist, or homophobic content. 
Fine-tuning the model on your data won’t make this intrinsic bias disappear.