Instructions to use TurkuNLP/web-register-classification-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TurkuNLP/web-register-classification-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TurkuNLP/web-register-classification-multilingual")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/web-register-classification-multilingual") model = AutoModelForSequenceClassification.from_pretrained("TurkuNLP/web-register-classification-multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -130,20 +130,32 @@ Average inference time (across 1000 iterations), using a single NVIDIA A100 GPU
|
|
| 130 |
|
| 131 |
## Evaluation
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
| Language | F1 (All labels) | F1 (Main labels) |
|
| 136 |
-
| -------- | --------------- | ---------------- |
|
| 137 |
-
| English | 0.72 | 0.75
|
| 138 |
-
| Finnish | 0.79 |
|
| 139 |
-
| French | 0.75 |
|
| 140 |
-
| Swedish | 0.81 |
|
| 141 |
-
| Turkish | 0.77 |
|
| 142 |
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
## Technical Specifications
|
| 149 |
|
|
|
|
| 130 |
|
| 131 |
## Evaluation
|
| 132 |
|
| 133 |
+
Micro-averaged F1 scores and optimized prediction thresholds for the five training languages (test set):
|
| 134 |
+
|
| 135 |
+
| Language | F1 (All labels) | F1 (Main labels) | Threshold |
|
| 136 |
+
| -------- | --------------- | ---------------- | ----------|
|
| 137 |
+
| English | 0.72 | 0.75 | 0.40 |
|
| 138 |
+
| Finnish | 0.79 | 0.82 | 0.45 |
|
| 139 |
+
| French | 0.75 | 0.78 | 0.45 |
|
| 140 |
+
| Swedish | 0.81 | 0.82 | 0.45 |
|
| 141 |
+
| Turkish | 0.77 | 0.78 | 0.45 |
|
| 142 |
|
| 143 |
+
Micro-averaged F1 scores and optimized prediction thresholds for additional languages (zero-shot):
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
| Language | F1 (All labels) | F1 (Main labels) | Threshold |
|
| 147 |
+
| ---------- | --------------- | ---------------- | ----------|
|
| 148 |
+
| Arabic | 0.63 | 0.66 | 0.40 |
|
| 149 |
+
| Catalan | 0.62 | 0.63 | 0.50 |
|
| 150 |
+
| Spanish | 0.62 | 0.67 | 0.65 |
|
| 151 |
+
| Persian | 0.71 | 0.70 | 0.35 |
|
| 152 |
+
| Hindi | 0.77 | 0.78 | 0.40 |
|
| 153 |
+
| Indonesian | 0.60 | 0.61 | 0.30 |
|
| 154 |
+
| Japanese | 0.53 | 0.64 | 0.35 |
|
| 155 |
+
| Norwegian | 0.65 | 0.70 | 0.65 |
|
| 156 |
+
| Portuguese | 0.67 | 0.68 | 0.40 |
|
| 157 |
+
| Urdu | 0.81 | 0.83 | 0.35 |
|
| 158 |
+
| Chinese | 0.67 | 0.70 | 0.40 |
|
| 159 |
|
| 160 |
## Technical Specifications
|
| 161 |
|