Ieu sabenerna teu mungkin jeung dasar `BertModel` kelas, nu ngan mulih hiji kalimat embedding. Cara disarankeun HuggingFace pikeun ngagunakeun BERT pikeun prediksi kecap topéng nyaéta ngaliwatan modul `pipeline`: ``python ti transformator ngimpor pipeline unmasker = pipeline('fill-mask', model='bert-base-uncased') print(unmasker("Revenge mangrupakeun piring pangalusna dilayanan [MASK].") # [ {'score': 0.3299422264099121, 'token': 3147, 'token_str': 'cold','sequence': 'cold revenge is a dish best.'}, #'score': 0.07907173037528992, 'tokenors 'doors' 1935, 'doors' served'make: 'doors''re
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence