End of training
Browse files- README.md +70 -0
- config.json +69 -0
- model.safetensors +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,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: distilbert-finetuned-ner-for-articles
|
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 |
+
# distilbert-finetuned-ner-for-articles
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.4393
|
24 |
+
- Precision: 0.6848
|
25 |
+
- Recall: 0.6391
|
26 |
+
- F1: 0.6611
|
27 |
+
- Accuracy: 0.8736
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 8
|
48 |
+
- eval_batch_size: 8
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 5
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| 0.4324 | 1.0 | 51 | 0.4654 | 0.6744 | 0.5577 | 0.6105 | 0.8598 |
|
59 |
+
| 0.3106 | 2.0 | 102 | 0.4438 | 0.7041 | 0.6026 | 0.6494 | 0.8674 |
|
60 |
+
| 0.2886 | 3.0 | 153 | 0.4378 | 0.6744 | 0.5987 | 0.6343 | 0.8678 |
|
61 |
+
| 0.2724 | 4.0 | 204 | 0.4443 | 0.6788 | 0.6449 | 0.6614 | 0.8736 |
|
62 |
+
| 0.2504 | 5.0 | 255 | 0.4393 | 0.6848 | 0.6391 | 0.6611 | 0.8736 |
|
63 |
+
|
64 |
+
|
65 |
+
### Framework versions
|
66 |
+
|
67 |
+
- Transformers 4.40.1
|
68 |
+
- Pytorch 2.2.1+cu121
|
69 |
+
- Datasets 2.19.0
|
70 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-cased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "S-CRIME",
|
14 |
+
"2": "S-CRIMINAL",
|
15 |
+
"3": "S-VICTIM",
|
16 |
+
"4": "S-TIMEDATE",
|
17 |
+
"5": "S-LOC",
|
18 |
+
"6": "S-TIMEWORD",
|
19 |
+
"7": "S-LOCWORD",
|
20 |
+
"8": "B-LOC",
|
21 |
+
"9": "E-LOC",
|
22 |
+
"10": "S-SUSPECT",
|
23 |
+
"11": "S-TIMEDAY",
|
24 |
+
"12": "S-TIMEDAYPART",
|
25 |
+
"13": "S-LOCDIR",
|
26 |
+
"14": "S-NATDISAS",
|
27 |
+
"15": "S-ACCIDENT",
|
28 |
+
"16": "S-TIMENUM",
|
29 |
+
"17": "I-LOC",
|
30 |
+
"18": "S-TIMEMISC",
|
31 |
+
"19": "S-OTHEROCC"
|
32 |
+
},
|
33 |
+
"initializer_range": 0.02,
|
34 |
+
"label2id": {
|
35 |
+
"B-LOC": 8,
|
36 |
+
"E-LOC": 9,
|
37 |
+
"I-LOC": 17,
|
38 |
+
"O": 0,
|
39 |
+
"S-ACCIDENT": 15,
|
40 |
+
"S-CRIME": 1,
|
41 |
+
"S-CRIMINAL": 2,
|
42 |
+
"S-LOC": 5,
|
43 |
+
"S-LOCDIR": 13,
|
44 |
+
"S-LOCWORD": 7,
|
45 |
+
"S-NATDISAS": 14,
|
46 |
+
"S-OTHEROCC": 19,
|
47 |
+
"S-SUSPECT": 10,
|
48 |
+
"S-TIMEDATE": 4,
|
49 |
+
"S-TIMEDAY": 11,
|
50 |
+
"S-TIMEDAYPART": 12,
|
51 |
+
"S-TIMEMISC": 18,
|
52 |
+
"S-TIMENUM": 16,
|
53 |
+
"S-TIMEWORD": 6,
|
54 |
+
"S-VICTIM": 3
|
55 |
+
},
|
56 |
+
"max_position_embeddings": 512,
|
57 |
+
"model_type": "distilbert",
|
58 |
+
"n_heads": 12,
|
59 |
+
"n_layers": 6,
|
60 |
+
"output_past": true,
|
61 |
+
"pad_token_id": 0,
|
62 |
+
"qa_dropout": 0.1,
|
63 |
+
"seq_classif_dropout": 0.2,
|
64 |
+
"sinusoidal_pos_embds": false,
|
65 |
+
"tie_weights_": true,
|
66 |
+
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.40.1",
|
68 |
+
"vocab_size": 28996
|
69 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5be8dcdcd2cd18fa858da67eb5e8611c2a01358a0a282ad03717d85a25b6913
|
3 |
+
size 260837504
|
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": 1000000000000000019884624838656,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "DistilBertTokenizer",
|
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:0f50f34ad9df48bd891b98c07bb7a8d8ff534a564f9b71d17cbbda1e923bfdcb
|
3 |
+
size 4984
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|