DerivedFunction commited on
Commit
c5dba97
·
verified ·
1 Parent(s): 04ec433

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -216
README.md CHANGED
@@ -1,216 +0,0 @@
1
- ---
2
- library_name: transformers
3
- license: mit
4
- base_model: xlm-roberta-base
5
- tags:
6
- - generated_from_trainer
7
- metrics:
8
- - precision
9
- - recall
10
- - f1
11
- - accuracy
12
- language:
13
- - multilingual
14
- - af
15
- - am
16
- - ar
17
- - as
18
- - ba
19
- - be
20
- - bg
21
- - bn
22
- - bo
23
- - br
24
- - bs
25
- - ca
26
- - ce
27
- - ckb
28
- - cs
29
- - cy
30
- - da
31
- - de
32
- - dv
33
- - el
34
- - en
35
- - eo
36
- - es
37
- - et
38
- - eu
39
- - fa
40
- - fi
41
- - fr
42
- - ga
43
- - gd
44
- - gl
45
- - gu
46
- - he
47
- - hi
48
- - hr
49
- - hu
50
- - hy
51
- - id
52
- - is
53
- - it
54
- - ja
55
- - jv
56
- - ka
57
- - kk
58
- - km
59
- - kn
60
- - ko
61
- - ku
62
- - ky
63
- - la
64
- - lb
65
- - lo
66
- - lt
67
- - lv
68
- - mg
69
- - mk
70
- - ml
71
- - mn
72
- - mr
73
- - ms
74
- - mt
75
- - my
76
- - ne
77
- - nl
78
- - 'no'
79
- - ny
80
- - oc
81
- - om
82
- - or
83
- - pa
84
- - pl
85
- - ps
86
- - pt
87
- - rm
88
- - ro
89
- - ru
90
- - sd
91
- - si
92
- - sk
93
- - sl
94
- - so
95
- - sq
96
- - sr
97
- - su
98
- - sv
99
- - sw
100
- - ta
101
- - te
102
- - tg
103
- - th
104
- - ti
105
- - tl
106
- - tr
107
- - tt
108
- - ug
109
- - uk
110
- - ur
111
- - uz
112
- - vi
113
- - yo
114
- - zh
115
- - zu
116
- model-index:
117
- - name: polyglot-tagger
118
- results: []
119
- datasets:
120
- - wikimedia/wikipedia
121
- - HuggingFaceFW/finetranslations
122
- - google/smol
123
- - DerivedFunction/nlp-noise-snippets
124
- - DerivedFunction/wikipedia-language-snippets-filtered
125
- - DerivedFunction/finetranslations-filtered
126
- - DerivedFunction/lang-ner-v2
127
- - DerivedFunction/tatoeba-filtered
128
- pipeline_tag: token-classification
129
- ---
130
-
131
-
132
- ![image](https://cdn-uploads.huggingface.co/production/uploads/67ee3f0a66388136438834cc/OnfV_fN2br5c4cPnOn6O0.png)
133
-
134
-
135
- Fine-tuned `xlm-roberta-base` for sentence-level language tagging across 100 languages.
136
- The model predicts BIO-style language tags over tokens, which makes it useful for
137
- language identification, code-switch detection, and multilingual document analysis.
138
-
139
-
140
-
141
- ## Model description
142
-
143
- Introducing Polyglot Tagger, a new way to classify multi-lingual documents. By training specifically on token classification on individual sentences, the model
144
- generalizes well on a variety of languages, while also behaves as a multi-label classifier, and extracts sentences based on its language.
145
-
146
- ## Intended uses & limitations
147
- This model can be treated as a base model for further fine-tuning on specific language identification extraction tasks.
148
- Note that as a general language tagging model, it can potentially get confused from shared language families or from short texts. For example, English and German, Spanish and Portuguese, and Russian and Ukrainian.
149
-
150
- The model is trained on a sentence with a minimum of four tokens, so it may not accurately classify very short and ambigous statements. Note that this model is experimental
151
- and may produce unexpected results compared to generic text classifiers. It is trained on cleaned text, therefore, "messy" text may unexpectedly produce different results.
152
-
153
- > Note that Romanized versions of any language may only have minor representation in the training set, such as Romanized Russian, and Hindi.
154
-
155
- ### Training and Evaluation Data
156
- A synthetic training row consists of 1-4 individual and mostly independent sentences extracted from various sources. The actual training and evaluation data, as well as coverage
157
- is found in `DerivedFunction/lang-ner-v2`.
158
-
159
-
160
- It achieves the following results on the evaluation set:
161
- - Loss: 0.0427
162
- - Precision: 0.8949
163
- - Recall: 0.9144
164
- - F1: 0.9046
165
- - Accuracy: 0.9892
166
-
167
- ## Training procedure
168
-
169
- ### Training hyperparameters
170
-
171
- The following hyperparameters were used during training:
172
- - learning_rate: 5e-05
173
- - train_batch_size: 72
174
- - eval_batch_size: 36
175
- - seed: 42
176
- - gradient_accumulation_steps: 2
177
- - total_train_batch_size: 144
178
- - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
179
- - lr_scheduler_type: linear
180
- - num_epochs: 2
181
- - mixed_precision_training: Native AMP
182
-
183
- ### Training results
184
-
185
- | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
186
- |:-------------:|:------:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
187
- | 0.0919 | 0.0894 | 2500 | 0.1243 | 0.7388 | 0.8336 | 0.7833 | 0.9712 |
188
- | 0.0798 | 0.1788 | 5000 | 0.0950 | 0.7928 | 0.8607 | 0.8254 | 0.9774 |
189
- | 0.0738 | 0.2682 | 7500 | 0.0857 | 0.8173 | 0.8722 | 0.8438 | 0.9785 |
190
- | 0.0611 | 0.3575 | 10000 | 0.0797 | 0.8247 | 0.8767 | 0.8499 | 0.9812 |
191
- | 0.0588 | 0.4469 | 12500 | 0.0732 | 0.8336 | 0.8843 | 0.8582 | 0.9822 |
192
- | 0.0542 | 0.5363 | 15000 | 0.0665 | 0.8560 | 0.8922 | 0.8737 | 0.9838 |
193
- | 0.0557 | 0.6257 | 17500 | 0.0613 | 0.8607 | 0.8949 | 0.8775 | 0.9845 |
194
- | 0.0486 | 0.7151 | 20000 | 0.0590 | 0.8567 | 0.8953 | 0.8755 | 0.9851 |
195
- | 0.0474 | 0.8045 | 22500 | 0.0601 | 0.8660 | 0.8971 | 0.8813 | 0.9854 |
196
- | 0.0545 | 0.8938 | 25000 | 0.0574 | 0.8675 | 0.9003 | 0.8836 | 0.9857 |
197
- | 0.0485 | 0.9832 | 27500 | 0.0566 | 0.8723 | 0.9018 | 0.8868 | 0.9858 |
198
- | 0.0440 | 1.0726 | 30000 | 0.0522 | 0.8769 | 0.9042 | 0.8904 | 0.9867 |
199
- | 0.0396 | 1.1620 | 32500 | 0.0509 | 0.8761 | 0.9046 | 0.8901 | 0.9873 |
200
- | 0.0383 | 1.2514 | 35000 | 0.0489 | 0.8788 | 0.9057 | 0.8921 | 0.9879 |
201
- | 0.0370 | 1.3408 | 37500 | 0.0486 | 0.8842 | 0.9087 | 0.8963 | 0.9877 |
202
- | 0.0350 | 1.4302 | 40000 | 0.0489 | 0.8769 | 0.9054 | 0.8909 | 0.9874 |
203
- | 0.0330 | 1.5195 | 42500 | 0.0478 | 0.8842 | 0.9091 | 0.8965 | 0.9879 |
204
- | 0.0308 | 1.6089 | 45000 | 0.0458 | 0.8897 | 0.9122 | 0.9008 | 0.9888 |
205
- | 0.0317 | 1.6983 | 47500 | 0.0454 | 0.8873 | 0.9114 | 0.8992 | 0.9887 |
206
- | 0.0322 | 1.7877 | 50000 | 0.0447 | 0.8900 | 0.9117 | 0.9007 | 0.9888 |
207
- | 0.0310 | 1.8771 | 52500 | 0.0439 | 0.8910 | 0.9126 | 0.9017 | 0.9888 |
208
- | 0.0294 | 1.9665 | 55000 | 0.0427 | 0.8949 | 0.9144 | 0.9046 | 0.9892 |
209
-
210
-
211
- ### Framework versions
212
-
213
- - Transformers 5.0.0
214
- - Pytorch 2.10.0+cu128
215
- - Datasets 4.0.0
216
- - Tokenizers 0.22.2