Programming, Artificial Intelligence, Machine Learning, Data Science, Python.
tokenizer.convert_ids_to_tokens(predicted_token_ids[0]) return " ".join(predicted_tokens) sentence = "I enjoy playing [MASK] games on weekends." print(predict_masked_words(sentence, model, tokenizer)) Some weights of the model checkpoint at bert-base-uncased were not used when initializing