681036b 11c2ed7 681036b 11c2ed7 54f7e0b
1
2
3
4
5
6
7
8
unmasker = pipeline('fill-mask', model='bert-large-uncased') user_input = input("Enter a sentence with a masked word: ") results = unmasker(user_input) for result in results: print(result['sequence'])