Training in progress, epoch 1
Browse files- README.md +79 -0
- config.json +77 -0
- model.safetensors +3 -0
- runs/Apr29_02-28-17_a88bf9f1af5f/events.out.tfevents.1714357698.a88bf9f1af5f.1337.0 +3 -0
- runs/Apr29_02-38-49_a88bf9f1af5f/events.out.tfevents.1714358330.a88bf9f1af5f.1337.1 +3 -0
- runs/Apr29_02-51-00_a88bf9f1af5f/events.out.tfevents.1714359061.a88bf9f1af5f.1337.2 +3 -0
- runs/Apr29_03-02-32_a88bf9f1af5f/events.out.tfevents.1714359753.a88bf9f1af5f.1337.3 +3 -0
- runs/Apr29_03-15-19_a88bf9f1af5f/events.out.tfevents.1714360521.a88bf9f1af5f.13227.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-multilingual-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: custom_BERT_NER
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# custom_BERT_NER
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.2288
|
24 |
+
- Perf P: 0.8211
|
25 |
+
- Perf R: 0.9398
|
26 |
+
- Inst P: 0.9444
|
27 |
+
- Inst R: 0.8095
|
28 |
+
- Comp P: 0.7717
|
29 |
+
- Comp R: 0.7474
|
30 |
+
- Precision: 0.8182
|
31 |
+
- Recall: 0.8270
|
32 |
+
- F1: 0.8226
|
33 |
+
- Accuracy: 0.9412
|
34 |
+
|
35 |
+
## Model description
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Intended uses & limitations
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training procedure
|
48 |
+
|
49 |
+
### Training hyperparameters
|
50 |
+
|
51 |
+
The following hyperparameters were used during training:
|
52 |
+
- learning_rate: 2e-05
|
53 |
+
- train_batch_size: 2
|
54 |
+
- eval_batch_size: 2
|
55 |
+
- seed: 42
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: linear
|
58 |
+
- num_epochs: 50
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Perf P | Perf R | Inst P | Inst R | Comp P | Comp R | Precision | Recall | F1 | Accuracy |
|
63 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:------:|:------:|:------:|:---------:|:------:|:------:|:--------:|
|
64 |
+
| 1.1177 | 1.0 | 68 | 0.5451 | 0.5033 | 0.9277 | 0.7377 | 0.7143 | 0.4333 | 0.2737 | 0.5762 | 0.4973 | 0.5338 | 0.8295 |
|
65 |
+
| 0.4079 | 2.0 | 136 | 0.3157 | 0.8021 | 0.9277 | 0.7742 | 0.7619 | 0.7701 | 0.7053 | 0.7542 | 0.7297 | 0.7418 | 0.9097 |
|
66 |
+
| 0.2188 | 3.0 | 204 | 0.2725 | 0.7143 | 0.9036 | 0.7 | 0.7778 | 0.74 | 0.7789 | 0.7391 | 0.7351 | 0.7371 | 0.9164 |
|
67 |
+
| 0.1484 | 4.0 | 272 | 0.2467 | 0.79 | 0.9518 | 0.7681 | 0.8413 | 0.7692 | 0.7368 | 0.7838 | 0.8036 | 0.7936 | 0.9290 |
|
68 |
+
| 0.0914 | 5.0 | 340 | 0.2059 | 0.8488 | 0.8795 | 0.8571 | 0.8571 | 0.8370 | 0.8105 | 0.8312 | 0.8252 | 0.8282 | 0.9374 |
|
69 |
+
| 0.0656 | 6.0 | 408 | 0.2090 | 0.8247 | 0.9639 | 0.8194 | 0.9365 | 0.8636 | 0.8 | 0.8406 | 0.8360 | 0.8383 | 0.9406 |
|
70 |
+
| 0.0541 | 7.0 | 476 | 0.2066 | 0.7692 | 0.9639 | 0.8254 | 0.8254 | 0.8506 | 0.7789 | 0.8259 | 0.8288 | 0.8273 | 0.9432 |
|
71 |
+
| 0.0345 | 8.0 | 544 | 0.2288 | 0.8211 | 0.9398 | 0.9444 | 0.8095 | 0.7717 | 0.7474 | 0.8182 | 0.8270 | 0.8226 | 0.9412 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.40.0
|
77 |
+
- Pytorch 2.2.1+cu121
|
78 |
+
- Datasets 2.19.0
|
79 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-multilingual-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-PER",
|
15 |
+
"2": "I-PER",
|
16 |
+
"3": "B-ORG",
|
17 |
+
"4": "I-ORG",
|
18 |
+
"5": "B-LOC",
|
19 |
+
"6": "I-LOC",
|
20 |
+
"7": "B-MISC",
|
21 |
+
"8": "I-MISC",
|
22 |
+
"9": "B-PERF",
|
23 |
+
"10": "I-PERF",
|
24 |
+
"11": "B-COMP",
|
25 |
+
"12": "I-COMP",
|
26 |
+
"13": "B-INST",
|
27 |
+
"14": "I-INST",
|
28 |
+
"15": "B-OTH",
|
29 |
+
"16": "I-OTH",
|
30 |
+
"17": "B-MUSIC",
|
31 |
+
"18": "I-MUSIC",
|
32 |
+
"19": "B-OTHP",
|
33 |
+
"20": "I-OTHP"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"B-COMP": 11,
|
39 |
+
"B-INST": 13,
|
40 |
+
"B-LOC": 5,
|
41 |
+
"B-MISC": 7,
|
42 |
+
"B-MUSIC": 17,
|
43 |
+
"B-ORG": 3,
|
44 |
+
"B-OTH": 15,
|
45 |
+
"B-OTHP": 19,
|
46 |
+
"B-PER": 1,
|
47 |
+
"B-PERF": 9,
|
48 |
+
"I-COMP": 12,
|
49 |
+
"I-INST": 14,
|
50 |
+
"I-LOC": 6,
|
51 |
+
"I-MISC": 8,
|
52 |
+
"I-MUSIC": 18,
|
53 |
+
"I-ORG": 4,
|
54 |
+
"I-OTH": 16,
|
55 |
+
"I-OTHP": 20,
|
56 |
+
"I-PER": 2,
|
57 |
+
"I-PERF": 10,
|
58 |
+
"O": 0
|
59 |
+
},
|
60 |
+
"layer_norm_eps": 1e-12,
|
61 |
+
"max_position_embeddings": 512,
|
62 |
+
"model_type": "bert",
|
63 |
+
"num_attention_heads": 12,
|
64 |
+
"num_hidden_layers": 12,
|
65 |
+
"pad_token_id": 0,
|
66 |
+
"pooler_fc_size": 768,
|
67 |
+
"pooler_num_attention_heads": 12,
|
68 |
+
"pooler_num_fc_layers": 3,
|
69 |
+
"pooler_size_per_head": 128,
|
70 |
+
"pooler_type": "first_token_transform",
|
71 |
+
"position_embedding_type": "absolute",
|
72 |
+
"torch_dtype": "float32",
|
73 |
+
"transformers_version": "4.40.0",
|
74 |
+
"type_vocab_size": 2,
|
75 |
+
"use_cache": true,
|
76 |
+
"vocab_size": 119547
|
77 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c3ead9f2cea63531155eafac5d78b4b75051a71b92c6c211a58b43b3046dde3
|
3 |
+
size 709139348
|
runs/Apr29_02-28-17_a88bf9f1af5f/events.out.tfevents.1714357698.a88bf9f1af5f.1337.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa2f4af87d2cb277377b76896005251d7c67fb10ebdd7a6ec79b91e0347cb2e0
|
3 |
+
size 13845
|
runs/Apr29_02-38-49_a88bf9f1af5f/events.out.tfevents.1714358330.a88bf9f1af5f.1337.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:607a97a26cd5cb6b3d205a5a671aadc7d1077dd9f4f41aab615ee9f06adc22ba
|
3 |
+
size 16717
|
runs/Apr29_02-51-00_a88bf9f1af5f/events.out.tfevents.1714359061.a88bf9f1af5f.1337.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae817d67a0d8ef71f3b96837e6fa29c297089da308237c09f15ab8c30fe1f28a
|
3 |
+
size 13806
|
runs/Apr29_03-02-32_a88bf9f1af5f/events.out.tfevents.1714359753.a88bf9f1af5f.1337.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b47a1300015d2ac7d7d49259899c8171f0c4facebb615c7e9eaabacbf859913b
|
3 |
+
size 13825
|
runs/Apr29_03-15-19_a88bf9f1af5f/events.out.tfevents.1714360521.a88bf9f1af5f.13227.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82381c9c44f3fd8f8b1c8763fa4caf922bf9ce2b9ca7c6d3c9208f9d84d0a83f
|
3 |
+
size 6610
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": false,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "BertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15578840aabc4db66fd8724fe8a4ab4cdafff576a0f90066569c482cb68b8f2c
|
3 |
+
size 4984
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|