lilyyellow commited on
Commit
c17dcc8
1 Parent(s): 51405f6

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- base_model: lilyyellow/my_awesome_ner-token_classification_v1.0.7-7
 
3
  tags:
4
  - generated_from_trainer
5
  model-index:
@@ -12,25 +13,25 @@ should probably proofread and complete it, then remove this comment. -->
12
 
13
  # my_awesome_ner-token_classification_v1.0.7-7
14
 
15
- This model is a fine-tuned version of [lilyyellow/my_awesome_ner-token_classification_v1.0.7-7](https://huggingface.co/lilyyellow/my_awesome_ner-token_classification_v1.0.7-7) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
- - Loss: 0.4796
18
- - Age: {'precision': 0.9296875, 'recall': 0.8880597014925373, 'f1': 0.9083969465648856, 'number': 134}
19
- - Datetime: {'precision': 0.6636113657195234, 'recall': 0.7335359675785208, 'f1': 0.6968238691049086, 'number': 987}
20
- - Disease: {'precision': 0.6589403973509934, 'recall': 0.7595419847328244, 'f1': 0.7056737588652483, 'number': 262}
21
- - Event: {'precision': 0.2397094430992736, 'recall': 0.3535714285714286, 'f1': 0.28571428571428575, 'number': 280}
22
- - Gender: {'precision': 0.7741935483870968, 'recall': 0.8275862068965517, 'f1': 0.7999999999999999, 'number': 87}
23
- - Law: {'precision': 0.513595166163142, 'recall': 0.6666666666666666, 'f1': 0.5802047781569966, 'number': 255}
24
- - Location: {'precision': 0.6822724881641241, 'recall': 0.7225626740947075, 'f1': 0.7018398268398268, 'number': 1795}
25
- - Organization: {'precision': 0.6211683053788317, 'recall': 0.7098479841374752, 'f1': 0.662553979025293, 'number': 1513}
26
- - Person: {'precision': 0.6743572841133817, 'recall': 0.7359712230215827, 'f1': 0.7038183694530443, 'number': 1390}
27
- - Quantity: {'precision': 0.5043859649122807, 'recall': 0.6095406360424028, 'f1': 0.552, 'number': 566}
28
- - Role: {'precision': 0.4247391952309985, 'recall': 0.5210237659963437, 'f1': 0.4679802955665025, 'number': 547}
29
- - Transportation: {'precision': 0.45454545454545453, 'recall': 0.6086956521739131, 'f1': 0.5204460966542751, 'number': 115}
30
- - Overall Precision: 0.6076
31
- - Overall Recall: 0.6906
32
- - Overall F1: 0.6464
33
- - Overall Accuracy: 0.8885
34
 
35
  ## Model description
36
 
@@ -59,9 +60,9 @@ The following hyperparameters were used during training:
59
 
60
  ### Training results
61
 
62
- | Training Loss | Epoch | Step | Validation Loss | Age | Datetime | Disease | Event | Gender | Law | Location | Organization | Person | Quantity | Role | Transportation | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
63
- |:-------------:|:------:|:----:|:---------------:|:-----------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
64
- | 0.1263 | 1.9965 | 1156 | 0.4796 | {'precision': 0.9296875, 'recall': 0.8880597014925373, 'f1': 0.9083969465648856, 'number': 134} | {'precision': 0.6636113657195234, 'recall': 0.7335359675785208, 'f1': 0.6968238691049086, 'number': 987} | {'precision': 0.6589403973509934, 'recall': 0.7595419847328244, 'f1': 0.7056737588652483, 'number': 262} | {'precision': 0.2397094430992736, 'recall': 0.3535714285714286, 'f1': 0.28571428571428575, 'number': 280} | {'precision': 0.7741935483870968, 'recall': 0.8275862068965517, 'f1': 0.7999999999999999, 'number': 87} | {'precision': 0.513595166163142, 'recall': 0.6666666666666666, 'f1': 0.5802047781569966, 'number': 255} | {'precision': 0.6822724881641241, 'recall': 0.7225626740947075, 'f1': 0.7018398268398268, 'number': 1795} | {'precision': 0.6211683053788317, 'recall': 0.7098479841374752, 'f1': 0.662553979025293, 'number': 1513} | {'precision': 0.6743572841133817, 'recall': 0.7359712230215827, 'f1': 0.7038183694530443, 'number': 1390} | {'precision': 0.5043859649122807, 'recall': 0.6095406360424028, 'f1': 0.552, 'number': 566} | {'precision': 0.4247391952309985, 'recall': 0.5210237659963437, 'f1': 0.4679802955665025, 'number': 547} | {'precision': 0.45454545454545453, 'recall': 0.6086956521739131, 'f1': 0.5204460966542751, 'number': 115} | 0.6076 | 0.6906 | 0.6464 | 0.8885 |
65
 
66
 
67
  ### Framework versions
 
1
  ---
2
+ license: mit
3
+ base_model: FacebookAI/xlm-roberta-base
4
  tags:
5
  - generated_from_trainer
6
  model-index:
 
13
 
14
  # my_awesome_ner-token_classification_v1.0.7-7
15
 
16
+ This model is a fine-tuned version of [FacebookAI/xlm-roberta-base](https://huggingface.co/FacebookAI/xlm-roberta-base) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Loss: 0.3063
19
+ - Age: {'precision': 0.9090909090909091, 'recall': 0.916030534351145, 'f1': 0.9125475285171103, 'number': 131}
20
+ - Datetime: {'precision': 0.6997055937193327, 'recall': 0.7396265560165975, 'f1': 0.719112455874937, 'number': 964}
21
+ - Disease: {'precision': 0.6787003610108303, 'recall': 0.7258687258687259, 'f1': 0.7014925373134328, 'number': 259}
22
+ - Event: {'precision': 0.2840466926070039, 'recall': 0.27137546468401486, 'f1': 0.27756653992395436, 'number': 269}
23
+ - Gender: {'precision': 0.625, 'recall': 0.7471264367816092, 'f1': 0.6806282722513088, 'number': 87}
24
+ - Law: {'precision': 0.5387205387205387, 'recall': 0.6808510638297872, 'f1': 0.6015037593984962, 'number': 235}
25
+ - Location: {'precision': 0.6476527006562343, 'recall': 0.729806598407281, 'f1': 0.6862797539449051, 'number': 1758}
26
+ - Organization: {'precision': 0.5866666666666667, 'recall': 0.697029702970297, 'f1': 0.63710407239819, 'number': 1515}
27
+ - Person: {'precision': 0.7053824362606232, 'recall': 0.7238372093023255, 'f1': 0.7144906743185079, 'number': 1376}
28
+ - Quantity: {'precision': 0.5528846153846154, 'recall': 0.6227436823104693, 'f1': 0.5857385398981324, 'number': 554}
29
+ - Role: {'precision': 0.47495961227786754, 'recall': 0.5434380776340111, 'f1': 0.506896551724138, 'number': 541}
30
+ - Transportation: {'precision': 0.48120300751879697, 'recall': 0.5614035087719298, 'f1': 0.5182186234817814, 'number': 114}
31
+ - Overall Precision: 0.6189
32
+ - Overall Recall: 0.6865
33
+ - Overall F1: 0.6510
34
+ - Overall Accuracy: 0.9023
35
 
36
  ## Model description
37
 
 
60
 
61
  ### Training results
62
 
63
+ | Training Loss | Epoch | Step | Validation Loss | Age | Datetime | Disease | Event | Gender | Law | Location | Organization | Person | Quantity | Role | Transportation | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
64
+ |:-------------:|:------:|:----:|:---------------:|:-------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
65
+ | 0.2811 | 1.9965 | 1156 | 0.3063 | {'precision': 0.9090909090909091, 'recall': 0.916030534351145, 'f1': 0.9125475285171103, 'number': 131} | {'precision': 0.6997055937193327, 'recall': 0.7396265560165975, 'f1': 0.719112455874937, 'number': 964} | {'precision': 0.6787003610108303, 'recall': 0.7258687258687259, 'f1': 0.7014925373134328, 'number': 259} | {'precision': 0.2840466926070039, 'recall': 0.27137546468401486, 'f1': 0.27756653992395436, 'number': 269} | {'precision': 0.625, 'recall': 0.7471264367816092, 'f1': 0.6806282722513088, 'number': 87} | {'precision': 0.5387205387205387, 'recall': 0.6808510638297872, 'f1': 0.6015037593984962, 'number': 235} | {'precision': 0.6476527006562343, 'recall': 0.729806598407281, 'f1': 0.6862797539449051, 'number': 1758} | {'precision': 0.5866666666666667, 'recall': 0.697029702970297, 'f1': 0.63710407239819, 'number': 1515} | {'precision': 0.7053824362606232, 'recall': 0.7238372093023255, 'f1': 0.7144906743185079, 'number': 1376} | {'precision': 0.5528846153846154, 'recall': 0.6227436823104693, 'f1': 0.5857385398981324, 'number': 554} | {'precision': 0.47495961227786754, 'recall': 0.5434380776340111, 'f1': 0.506896551724138, 'number': 541} | {'precision': 0.48120300751879697, 'recall': 0.5614035087719298, 'f1': 0.5182186234817814, 'number': 114} | 0.6189 | 0.6865 | 0.6510 | 0.9023 |
66
 
67
 
68
  ### Framework versions
config.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "_name_or_path": "lilyyellow/my_awesome_ner-token_classification_v1.0.7-7",
3
  "architectures": [
4
- "ElectraForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
7
  "classifier_dropout": null,
8
- "embedding_size": 768,
9
- "finetuning_task": "ner",
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
@@ -66,20 +66,17 @@
66
  "I-TRANSPORTATION": 21,
67
  "O": 13
68
  },
69
- "layer_norm_eps": 1e-12,
70
- "max_position_embeddings": 512,
71
- "model_type": "electra",
72
  "num_attention_heads": 12,
73
  "num_hidden_layers": 12,
74
- "pad_token_id": 0,
 
75
  "position_embedding_type": "absolute",
76
- "summary_activation": "gelu",
77
- "summary_last_dropout": 0.1,
78
- "summary_type": "first",
79
- "summary_use_proj": true,
80
  "torch_dtype": "float32",
81
  "transformers_version": "4.41.2",
82
- "type_vocab_size": 2,
83
  "use_cache": true,
84
- "vocab_size": 62000
85
  }
 
1
  {
2
+ "_name_or_path": "FacebookAI/xlm-roberta-base",
3
  "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
  "classifier_dropout": null,
9
+ "eos_token_id": 2,
 
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
 
66
  "I-TRANSPORTATION": 21,
67
  "O": 13
68
  },
69
+ "layer_norm_eps": 1e-05,
70
+ "max_position_embeddings": 514,
71
+ "model_type": "xlm-roberta",
72
  "num_attention_heads": 12,
73
  "num_hidden_layers": 12,
74
+ "output_past": true,
75
+ "pad_token_id": 1,
76
  "position_embedding_type": "absolute",
 
 
 
 
77
  "torch_dtype": "float32",
78
  "transformers_version": "4.41.2",
79
+ "type_vocab_size": 1,
80
  "use_cache": true,
81
+ "vocab_size": 250002
82
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b2f9cf43935fd1e3991aa6d5d1bcda53f1dfb2745e536cbd2362b6729be7bcc
3
- size 532367844
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f665f1eaaf2b7ec290dae18852cafb3f63584af40fd6c7f469c5374f05c85d9c
3
+ size 1109913172
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json CHANGED
@@ -1,37 +1,15 @@
1
  {
2
- "cls_token": {
3
- "content": "[CLS]",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
  "mask_token": {
10
- "content": "[MASK]",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "[PAD]",
18
- "lstrip": false,
19
  "normalized": false,
20
  "rstrip": false,
21
  "single_word": false
22
  },
23
- "sep_token": {
24
- "content": "[SEP]",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
- "unk_token": {
31
- "content": "[UNK]",
32
- "lstrip": false,
33
- "normalized": false,
34
- "rstrip": false,
35
- "single_word": false
36
- }
37
  }
 
1
  {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
 
 
 
 
5
  "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
 
 
 
 
 
 
 
8
  "normalized": false,
9
  "rstrip": false,
10
  "single_word": false
11
  },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
 
 
 
 
 
 
 
 
 
 
 
15
  }
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
- "content": "[PAD]",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
@@ -9,7 +9,7 @@
9
  "special": true
10
  },
11
  "1": {
12
- "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
@@ -17,7 +17,7 @@
17
  "special": true
18
  },
19
  "2": {
20
- "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
@@ -25,40 +25,30 @@
25
  "special": true
26
  },
27
  "3": {
28
- "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "4": {
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_basic_tokenize": true,
47
- "do_lower_case": false,
48
- "mask_token": "[MASK]",
49
- "max_length": 256,
50
- "model_max_length": 1000000000000000019884624838656,
51
- "never_split": null,
52
- "pad_to_multiple_of": null,
53
- "pad_token": "[PAD]",
54
- "pad_token_type_id": 0,
55
- "padding_side": "right",
56
- "sep_token": "[SEP]",
57
- "stride": 0,
58
- "strip_accents": null,
59
- "tokenize_chinese_chars": true,
60
- "tokenizer_class": "ElectraTokenizer",
61
- "truncation_side": "right",
62
- "truncation_strategy": "longest_first",
63
- "unk_token": "[UNK]"
64
  }
 
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
+ "content": "<s>",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
 
9
  "special": true
10
  },
11
  "1": {
12
+ "content": "<pad>",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
 
17
  "special": true
18
  },
19
  "2": {
20
+ "content": "</s>",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
 
25
  "special": true
26
  },
27
  "3": {
28
+ "content": "<unk>",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
  "normalized": false,
39
  "rstrip": false,
40
  "single_word": false,
41
  "special": true
42
  }
43
  },
44
+ "bos_token": "<s>",
45
  "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
 
 
 
 
 
 
 
 
 
 
 
54
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f1885cf43673bb93309f827a1523f2b3d992bf5ec008527d78ebb1182f1c04d8
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f12124f34a33b0439a13e27f38e059f813f825eddda31530914ead0c3019bb9d
3
  size 5112