Downloads · 30 days
6
17% of all-time downloads
betulclkk1212/korece-siber-zorbalik-filtresi
korece-siber-zorbalik-filtresi is a text classification model from betulclkk1212. Use it when you need a label for a piece of text. It is set up for transformers.
import pandas as pd from datasets import Dataset from transformers import AutoTokenizer, AutoModelForSequenceClassification, TrainingArguments, Trainer
Downloads · 30 days
6
17% of all-time downloads
All-time downloads
35
Public
Parameters
109M
436 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
import pandas as pd from datasets import Dataset from transformers import AutoTokenizer, AutoModelForSequenceClassification, TrainingArguments, Trainer
print("Sistem sıfırlanıyor ve kesin çözüm başlatılıyor...\n")
veri_sozlugu = { "yorum_metni": [ "너 진짜 못생겼다, 연예인 왜 하냐?", "오늘 무대 너무 멋졌어요! 응원합니다!", "실력도 없으면서 낙하산으로 들어왔네ㅋㅋ", "이번 노래 진짜 중독성 있고 좋아요.", "그냥 지옥으로 가버려라, 꼴보기 싫다" ], "label": [1, 0, 1, 0, 1] # 'etiket' yerine 'label' yaptık, hata çözüldü! }
tablo = pd.DataFrame(veri_sozlugu) kendi_ozel_veri_setim = Dataset.from_pandas(tablo)
model_adi = "beomi/kcbert-base" kelime_ayirici = AutoTokenizer.from_pretrained(model_adi) yapay_zeka_beyni = AutoModelForSequenceClassification.from_pretrained(model_adi, num_labels=2)
def kelimeleri_sayiya_dok(ornek): return kelime_ayirici(ornek["yorum_metni"], truncation=True, padding="max_length", max_length=32)
hazir_veri_seti = kendi_ozel_veri_setim.map(kelimeleri_sayiya_dok, batched=True)
model_ismi = "korece-siber-zorbalik-filtresi" tam_model_linki = f"betulclkk1212/{model_ismi}"
egitim_ayarlari = TrainingArguments( output_dir=model_ismi, push_to_hub=True, hub_model_id=tam_model_linki, num_train_epochs=3, per_device_train_batch_size=2, logging_steps=1, report_to="none" # Ekstra hata olasılıklarını kapatıyoruz )
trainer = Trainer( model=yapay_zeka_beyni, args=egitim_ayarlari, train_dataset=hazir_veri_seti )
print("Yapay zekanın eğitimi başladı! Lütfen bekleyin...") trainer.train()
print("\n✓ Eğitim bitti! Model Hugging Face hesabına yükleniyor...") yapay_zeka_beyni.push_to_hub(tam_model_linki) kelime_ayirici.push_to_hub(tam_model_linki)
print("\n✓ MUAZZAM! Yapay zekan şu an resmi olarak Hugging Face profilinde canlı yayında!")
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]