lilyyellow
commited on
Commit
•
c17dcc8
1
Parent(s):
51405f6
End of training
Browse files- .gitattributes +1 -0
- README.md +23 -22
- config.json +11 -14
- model.safetensors +2 -2
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +8 -30
- tokenizer.json +0 -0
- tokenizer_config.json +16 -26
- training_args.bin +1 -1
.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 |
-
|
|
|
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 [
|
16 |
It achieves the following results on the evaluation set:
|
17 |
-
- Loss: 0.
|
18 |
-
- Age: {'precision': 0.
|
19 |
-
- Datetime: {'precision': 0.
|
20 |
-
- Disease: {'precision': 0.
|
21 |
-
- Event: {'precision': 0.
|
22 |
-
- Gender: {'precision': 0.
|
23 |
-
- Law: {'precision': 0.
|
24 |
-
- Location: {'precision': 0.
|
25 |
-
- Organization: {'precision': 0.
|
26 |
-
- Person: {'precision': 0.
|
27 |
-
- Quantity: {'precision': 0.
|
28 |
-
- Role: {'precision': 0.
|
29 |
-
- Transportation: {'precision': 0.
|
30 |
-
- Overall Precision: 0.
|
31 |
-
- Overall Recall: 0.
|
32 |
-
- Overall F1: 0.
|
33 |
-
- Overall Accuracy: 0.
|
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
|
63 |
-
|
64 |
-
| 0.
|
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": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
|
|
7 |
"classifier_dropout": null,
|
8 |
-
"
|
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-
|
70 |
-
"max_position_embeddings":
|
71 |
-
"model_type": "
|
72 |
"num_attention_heads": 12,
|
73 |
"num_hidden_layers": 12,
|
74 |
-
"
|
|
|
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":
|
83 |
"use_cache": true,
|
84 |
-
"vocab_size":
|
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:
|
3 |
-
size
|
|
|
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 |
-
"
|
3 |
-
|
4 |
-
|
5 |
-
"normalized": false,
|
6 |
-
"rstrip": false,
|
7 |
-
"single_word": false
|
8 |
-
},
|
9 |
"mask_token": {
|
10 |
-
"content": "
|
11 |
-
"lstrip":
|
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 |
-
"
|
24 |
-
|
25 |
-
|
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": "
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
@@ -9,7 +9,7 @@
|
|
9 |
"special": true
|
10 |
},
|
11 |
"1": {
|
12 |
-
"content": "
|
13 |
"lstrip": false,
|
14 |
"normalized": false,
|
15 |
"rstrip": false,
|
@@ -17,7 +17,7 @@
|
|
17 |
"special": true
|
18 |
},
|
19 |
"2": {
|
20 |
-
"content": "
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
@@ -25,40 +25,30 @@
|
|
25 |
"special": true
|
26 |
},
|
27 |
"3": {
|
28 |
-
"content": "
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
36 |
-
"content": "
|
37 |
-
"lstrip":
|
38 |
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
|
|
44 |
"clean_up_tokenization_spaces": true,
|
45 |
-
"cls_token": "
|
46 |
-
"
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"
|
52 |
-
"
|
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:
|
3 |
size 5112
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f12124f34a33b0439a13e27f38e059f813f825eddda31530914ead0c3019bb9d
|
3 |
size 5112
|