Views
No views yet
entailment or not_entailment for multiple categories like Memnuniyet (user satisfaction), Şikayet (complaints), and others.pipeline functionality. Below is an example to classify the review:1from transformers import pipeline
2
3CANDIDATE_LABELS = [
4 "Uygulama Performansı",
5 "Kullanıcı Arayüzü",
6 "Güncellemeler",
7 "Hata ve çökme",
8 "Reklam",
9 "Satın Alımlar",
10 "Müşteri Desteği",
11 "Abonelik",
12 "Memnuniyet",
13 "Özellikler",
14 "Şikayet"
15 ]
16
17# Load the pipeline
18classifier = pipeline("zero-shot-classification", model="yeniguno/nli-zero-shot-reviews-MiniLM-turkish-v1")
19
20text = "ChatGPT'nin abonelik ücreti çok yüksek ve müşteri desteği hiç yok, sorun yaşadığınızda yardım alabileceğiniz kimseyi bulamıyorsunuz."
21
22response = classifier(text, CANDIDATE_LABELS, multi_label=True)
23
24for label, score in zip(response["labels"], response["scores"]):
25 print(f"{label}: {score:.3f}")
26| Turkish Label | Description |
|---|---|
| Memnuniyet | User satisfaction |
| Şikayet | Complaints |
| Özellikler | Features |
| Satın Alımlar | Purchases |
| Kullanıcı Arayüzü | User interface |
| Uygulama Performansı | App performance |
| Hata ve Çökme | Bugs and crashes |
| Müşteri Desteği | Customer support |
| Abonelik | Subscriptions |
| Reklam | Advertisements |
| Güncellemeler | Updates |
| Step | Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|---|---|
| 500 | 0.313 | 0.367 | 0.882 | 0.974 | 0.887 | 0.928 |
| 1000 | 0.291 | 0.268 | 0.884 | 0.981 | 0.881 | 0.929 |
| 2000 | 0.244 | 0.245 | 0.915 | 0.981 | 0.919 | 0.949 |
| 3000 | 0.220 | 0.244 | 0.923 | 0.982 | 0.927 | 0.954 |
| 5500 | 0.190 | 0.191 | 0.926 | 0.987 | 0.926 | 0.955 |
0.19, demonstrating good generalization and minimal overfitting.Entailment: 137,685 examplesNot Entailment: 813,408 examplesmax_length=116).