Update README.md
Browse files
README.md
CHANGED
@@ -15,25 +15,24 @@ probably proofread and complete it, then remove this comment. -->
|
|
15 |
|
16 |
# Sultannn/bert-base-ft-ner-xtreme-id
|
17 |
|
18 |
-
This model is a fine-tuned version of [bert-base-multilingual-uncased](https://huggingface.co/bert-base-multilingual-uncased) on an
|
19 |
-
It achieves the following results on the evaluation set:
|
20 |
-
- Train Loss: 0.0260
|
21 |
-
- Validation Loss: 0.1174
|
22 |
-
- Epoch: 3
|
23 |
|
24 |
-
##
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
-
##
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
-
## Training and evaluation data
|
33 |
-
|
34 |
-
More information needed
|
35 |
-
|
36 |
-
## Training procedure
|
37 |
|
38 |
### Training hyperparameters
|
39 |
|
@@ -41,15 +40,6 @@ The following hyperparameters were used during training:
|
|
41 |
- optimizer: {'inner_optimizer': {'class_name': 'AdamWeightDecay', 'config': {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 4e-05, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 4e-05, 'decay_steps': 8248, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 500, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}}, 'dynamic': True, 'initial_scale': 32768.0, 'dynamic_growth_steps': 2000}
|
42 |
- training_precision: mixed_float16
|
43 |
|
44 |
-
### Training results
|
45 |
-
|
46 |
-
| Train Loss | Validation Loss | Epoch |
|
47 |
-
|:----------:|:---------------:|:-----:|
|
48 |
-
| 0.2788 | 0.1341 | 0 |
|
49 |
-
| 0.1023 | 0.1159 | 1 |
|
50 |
-
| 0.0549 | 0.1133 | 2 |
|
51 |
-
| 0.0260 | 0.1174 | 3 |
|
52 |
-
|
53 |
|
54 |
### Framework versions
|
55 |
|
@@ -57,3 +47,6 @@ The following hyperparameters were used during training:
|
|
57 |
- TensorFlow 2.8.0
|
58 |
- Datasets 2.1.0
|
59 |
- Tokenizers 0.12.1
|
|
|
|
|
|
|
|
15 |
|
16 |
# Sultannn/bert-base-ft-ner-xtreme-id
|
17 |
|
18 |
+
This model is a fine-tuned version of [bert-base-multilingual-uncased](https://huggingface.co/bert-base-multilingual-uncased) on an [xtreme PAN-X.id](https://huggingface.co/datasets/xtreme/viewer/PAN-X.id/test) for **NER** downstream task.
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
## Details of the downstream task (NER) - Dataset
|
21 |
|
22 |
+
| Dataset | # Examples |
|
23 |
+
| ---------------------- | ----- |
|
24 |
+
| Train | 35 K |
|
25 |
+
| Validation | 5 K |
|
26 |
|
27 |
+
## Metrics on evaluation set
|
28 |
|
29 |
+
| Metrics | Score |
|
30 |
+
| ---------------------- | ----- |
|
31 |
+
| Accuracy | **97.18** |
|
32 |
+
| F1 | **93.26** |
|
33 |
+
| Precision | **92.36** |
|
34 |
+
| Recall | **94.18** |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
### Training hyperparameters
|
38 |
|
|
|
40 |
- optimizer: {'inner_optimizer': {'class_name': 'AdamWeightDecay', 'config': {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 4e-05, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 4e-05, 'decay_steps': 8248, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 500, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}}, 'dynamic': True, 'initial_scale': 32768.0, 'dynamic_growth_steps': 2000}
|
41 |
- training_precision: mixed_float16
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
### Framework versions
|
45 |
|
|
|
47 |
- TensorFlow 2.8.0
|
48 |
- Datasets 2.1.0
|
49 |
- Tokenizers 0.12.1
|
50 |
+
|
51 |
+
- [Fine-tune on NER script provided by @stefan-it](https://raw.githubusercontent.com/stefan-it/fine-tuned-berts-seq/master/scripts/preprocess.py)
|
52 |
+
|