Text Classification
Transformers
Safetensors
Italian
new
xlm-roberta
multilingual
social-media
custom_code
text-embeddings-inference
Instructions to use SimoneAstarita/it-no-bio-20251014-t16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SimoneAstarita/it-no-bio-20251014-t16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SimoneAstarita/it-no-bio-20251014-t16", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("SimoneAstarita/it-no-bio-20251014-t16", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 4,217 Bytes
549d99f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | {
"overall": {
"at_0.5": {
"precision_macro": 0.8700892857142857,
"recall_macro": 0.9051808406647117,
"f1_macro": 0.8860139860139861,
"precision_weighted": 0.9312226117440842,
"recall_weighted": 0.9263803680981595,
"f1_weighted": 0.9280449611737956,
"accuracy": 0.9263803680981595,
"confusion_matrix": [
[
124,
8
],
[
4,
27
]
],
"classification_report": " precision recall f1-score support\n\n no-recl (0) 0.9688 0.9394 0.9538 132\n recl (1) 0.7714 0.8710 0.8182 31\n\n accuracy 0.9264 163\n macro avg 0.8701 0.9052 0.8860 163\nweighted avg 0.9312 0.9264 0.9280 163\n",
"threshold": 0.5
},
"at_best_global": {
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269,
"f1_macro": 0.9203323558162269,
"precision_weighted": 0.950920245398773,
"recall_weighted": 0.950920245398773,
"f1_weighted": 0.950920245398773,
"accuracy": 0.950920245398773,
"confusion_matrix": [
[
128,
4
],
[
4,
27
]
],
"classification_report": " precision recall f1-score support\n\n no-recl (0) 0.9697 0.9697 0.9697 132\n recl (1) 0.8710 0.8710 0.8710 31\n\n accuracy 0.9509 163\n macro avg 0.9203 0.9203 0.9203 163\nweighted avg 0.9509 0.9509 0.9509 163\n",
"threshold": 0.65
},
"at_best_by_lang": {
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269,
"f1_macro": 0.9203323558162269,
"precision_weighted": 0.950920245398773,
"recall_weighted": 0.950920245398773,
"f1_weighted": 0.950920245398773,
"accuracy": 0.950920245398773,
"confusion_matrix": [
[
128,
4
],
[
4,
27
]
],
"classification_report": " precision recall f1-score support\n\n no-recl (0) 0.9697 0.9697 0.9697 132\n recl (1) 0.8710 0.8710 0.8710 31\n\n accuracy 0.9509 163\n macro avg 0.9203 0.9203 0.9203 163\nweighted avg 0.9509 0.9509 0.9509 163\n",
"thresholds_by_lang": {
"it": 0.65
}
}
},
"thresholds": {
"global_best": {
"threshold": 0.65,
"f1_macro": 0.9203323558162269,
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269
},
"by_lang_best": {
"it": {
"threshold": 0.65,
"f1_macro": 0.9203323558162269,
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269
}
},
"default": 0.5
},
"per_lang": {
"at_0.5": [
{
"lang": "it",
"n": 163,
"accuracy": 0.9263803680981595,
"f1_macro": 0.8860139860139861,
"precision_macro": 0.8700892857142857,
"recall_macro": 0.9051808406647117,
"f1_weighted": 0.9280449611737956,
"precision_weighted": 0.9312226117440842,
"recall_weighted": 0.9263803680981595
}
],
"at_best_global": [
{
"lang": "it",
"n": 163,
"accuracy": 0.950920245398773,
"f1_macro": 0.9203323558162269,
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269,
"f1_weighted": 0.950920245398773,
"precision_weighted": 0.950920245398773,
"recall_weighted": 0.950920245398773
}
],
"at_best_by_lang": [
{
"lang": "it",
"n": 163,
"accuracy": 0.950920245398773,
"f1_macro": 0.9203323558162269,
"precision_macro": 0.9203323558162269,
"recall_macro": 0.9203323558162269,
"f1_weighted": 0.950920245398773,
"precision_weighted": 0.950920245398773,
"recall_weighted": 0.950920245398773
}
]
}
} |