Aleksandar commited on
Commit
c2a5af3
1 Parent(s): 6d61dfe
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - null
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model_index:
12
+ - name: electra-srb-ner
13
+ results:
14
+ - task:
15
+ name: Token Classification
16
+ type: token-classification
17
+ metric:
18
+ name: Accuracy
19
+ type: accuracy
20
+ value: 0.9509610737256943
21
+ ---
22
+
23
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
24
+ should probably proofread and complete it, then remove this comment. -->
25
+
26
+ # electra-srb-ner
27
+
28
+ This model was trained from scratch on the None dataset.
29
+ It achieves the following results on the evaluation set:
30
+ - Loss: 0.2686
31
+ - Precision: 0.8132
32
+ - Recall: 0.7889
33
+ - F1: 0.8009
34
+ - Accuracy: 0.9510
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 2e-05
54
+ - train_batch_size: 16
55
+ - eval_batch_size: 8
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - num_epochs: 10
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
64
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
65
+ | No log | 1.0 | 207 | 0.2887 | 0.7392 | 0.6269 | 0.6784 | 0.9221 |
66
+ | No log | 2.0 | 414 | 0.2076 | 0.7690 | 0.7147 | 0.7409 | 0.9397 |
67
+ | 0.2949 | 3.0 | 621 | 0.2011 | 0.7698 | 0.7583 | 0.7640 | 0.9441 |
68
+ | 0.2949 | 4.0 | 828 | 0.2077 | 0.7600 | 0.7807 | 0.7702 | 0.9451 |
69
+ | 0.089 | 5.0 | 1035 | 0.2198 | 0.7884 | 0.7684 | 0.7783 | 0.9465 |
70
+ | 0.089 | 6.0 | 1242 | 0.2437 | 0.7885 | 0.7824 | 0.7854 | 0.9474 |
71
+ | 0.089 | 7.0 | 1449 | 0.2394 | 0.7986 | 0.7970 | 0.7978 | 0.9511 |
72
+ | 0.0322 | 8.0 | 1656 | 0.2675 | 0.8135 | 0.7775 | 0.7951 | 0.9497 |
73
+ | 0.0322 | 9.0 | 1863 | 0.2832 | 0.8161 | 0.7798 | 0.7975 | 0.9508 |
74
+ | 0.0141 | 10.0 | 2070 | 0.2686 | 0.8132 | 0.7889 | 0.8009 | 0.9510 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.9.2
80
+ - Pytorch 1.9.0
81
+ - Datasets 1.11.0
82
+ - Tokenizers 0.10.1
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Aleksandar/electra-srb-oscar",
3
+ "architectures": [
4
+ "ElectraForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "embedding_size": 768,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1,
28
+ "LABEL_2": 2,
29
+ "LABEL_3": 3,
30
+ "LABEL_4": 4,
31
+ "LABEL_5": 5,
32
+ "LABEL_6": 6,
33
+ "LABEL_7": 7,
34
+ "LABEL_8": 8,
35
+ "LABEL_9": 9
36
+ },
37
+ "layer_norm_eps": 1e-12,
38
+ "max_position_embeddings": 512,
39
+ "model_type": "electra",
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 12,
42
+ "pad_token_id": 0,
43
+ "position_embedding_type": "absolute",
44
+ "summary_activation": "gelu",
45
+ "summary_last_dropout": 0.1,
46
+ "summary_type": "first",
47
+ "summary_use_proj": true,
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.9.2",
50
+ "type_vocab_size": 2,
51
+ "vocab_size": 30522
52
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f5cefaaa9308e09707a7b4e5042339476cdb2b23178d138bc5de01973bdf80b
3
+ size 435681969
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "Aleksandar/electra-srb-oscar", "tokenizer_class": "ElectraTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba55360ab836f63a2d2180f8e8b0f52c48fde66a4b5785616c09e160f294dbcc
3
+ size 2671
vocab.txt ADDED
The diff for this file is too large to render. See raw diff