Albatta, bu erda qanday qilib BERTni Jupyter notebook-da nol-shot matn tasnifi uchun ishlatishning misoli, shu jumladan har bir qadam uchun Python-da kod namunalari. Avval siz kerakli kutubxonalarni o'rnatishingiz kerak: `` `!pip transformatorlarni o'rnating!pip torch o'rnating ``` Keyingi, siz kerakli kutubxonalarni import qilishingiz va oldindan o'rgatilgan BERT modelini yuklashingiz mumkin: ``` transformatorlardan import quvurini import qilish, AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained ("nlptown/bert-base-tiltil-multilingual-uncased-sentiment") modelini o'rnatish, shu jumladan Python-da kod nam
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence