Pasti, di dieu aya conto kumaha ngagunakeun BERT pikeun klasifikasi téks nol-shot dina buku catetan Jupyter, kalebet conto kode di Python pikeun unggal léngkah. Mimiti, di dieu anjeun kedah masang perpustakaan anu diperyogikeun: ``!pip install transformers!pip install torch `` Next, anjeun tiasa ngimpor perpustakaan anu diperyogikeun sareng muatkeun modél BERT anu dilatih sateuacanna: `` ti transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained. from_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre_pre
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence