BERT bert-base-uncased' model in 4 lines
————————————————————————————————————
!pip install transformers
————————————————————————————————————
from transformers import pipeline
unmasker = pipeline('fill-mask', model='bert-base-uncased')
unmasker("Artificial Intelligence [MASK] take over the world.")
————————————————————————————————————
Full code: