Views
No views yet
| Sınıf | Precision | Recall | F1 |
|---|---|---|---|
| ekonomi | 0.90 | 0.74 | 0.81 |
| siyaset | 0.77 | 0.85 | 0.81 |
| dünya | 0.90 | 0.80 | 0.85 |
| kültür | 0.92 | 0.99 | 0.95 |
| sağlık | 0.96 | 0.99 | 0.97 |
| spor | 0.97 | 0.97 | 0.97 |
| teknoloji | 0.85 | 0.90 | 0.87 |
1from transformers import pipeline
2
3pipe = pipeline(
4 "text-classification",
5 model="celalkartoglu/xlm-roberta-ttc4900-merged",
6 tokenizer="celalkartoglu/xlm-roberta-ttc4900-merged",
7 return_all_scores=True
8)
9
10text = "Merkez Bankası faiz oranlarını sabit tuttu."
11print(pipe(text))