wolinski commited on
Commit
2ad0a65
1 Parent(s): da52a51

Upload TFBertForTokenClassification

Browse files
Files changed (3) hide show
  1. README.md +74 -0
  2. config.json +151 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: constituency-brackets-20
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
+
13
+ # constituency-brackets-20
14
+
15
+ This model is a fine-tuned version of [allegro/herbert-base-cased](https://huggingface.co/allegro/herbert-base-cased) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.2020
18
+ - Train Acc: 0.9356
19
+ - Validation Loss: 0.2929
20
+ - Validation Acc: 0.9120
21
+ - Epoch: 19
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'Adam', 'learning_rate': 5e-06, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Train Acc | Validation Loss | Validation Acc | Epoch |
46
+ |:----------:|:---------:|:---------------:|:--------------:|:-----:|
47
+ | 2.4703 | 0.3783 | 1.4719 | 0.5858 | 0 |
48
+ | 1.2149 | 0.6600 | 0.8922 | 0.7269 | 1 |
49
+ | 0.8721 | 0.7343 | 0.6914 | 0.7779 | 2 |
50
+ | 0.7186 | 0.7715 | 0.6028 | 0.8037 | 3 |
51
+ | 0.6239 | 0.7987 | 0.5427 | 0.8240 | 4 |
52
+ | 0.5432 | 0.8342 | 0.4469 | 0.8677 | 5 |
53
+ | 0.4521 | 0.8665 | 0.4092 | 0.8760 | 6 |
54
+ | 0.4100 | 0.8761 | 0.3867 | 0.8819 | 7 |
55
+ | 0.3792 | 0.8855 | 0.3761 | 0.8849 | 8 |
56
+ | 0.3526 | 0.8926 | 0.3469 | 0.8938 | 9 |
57
+ | 0.3304 | 0.8981 | 0.3433 | 0.8944 | 10 |
58
+ | 0.3091 | 0.9049 | 0.3329 | 0.8977 | 11 |
59
+ | 0.2935 | 0.9081 | 0.3178 | 0.9028 | 12 |
60
+ | 0.2769 | 0.9138 | 0.3140 | 0.9032 | 13 |
61
+ | 0.2614 | 0.9173 | 0.2994 | 0.9114 | 14 |
62
+ | 0.2472 | 0.9213 | 0.2954 | 0.9128 | 15 |
63
+ | 0.2344 | 0.9260 | 0.2899 | 0.9142 | 16 |
64
+ | 0.2229 | 0.9292 | 0.2971 | 0.9092 | 17 |
65
+ | 0.2136 | 0.9322 | 0.2872 | 0.9143 | 18 |
66
+ | 0.2020 | 0.9356 | 0.2929 | 0.9120 | 19 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.26.0
72
+ - TensorFlow 2.9.2
73
+ - Datasets 2.8.0
74
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allegro/herbert-base-cased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
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
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27",
40
+ "28": "LABEL_28",
41
+ "29": "LABEL_29",
42
+ "30": "LABEL_30",
43
+ "31": "LABEL_31",
44
+ "32": "LABEL_32",
45
+ "33": "LABEL_33",
46
+ "34": "LABEL_34",
47
+ "35": "LABEL_35",
48
+ "36": "LABEL_36",
49
+ "37": "LABEL_37",
50
+ "38": "LABEL_38",
51
+ "39": "LABEL_39",
52
+ "40": "LABEL_40",
53
+ "41": "LABEL_41",
54
+ "42": "LABEL_42",
55
+ "43": "LABEL_43",
56
+ "44": "LABEL_44",
57
+ "45": "LABEL_45",
58
+ "46": "LABEL_46",
59
+ "47": "LABEL_47",
60
+ "48": "LABEL_48",
61
+ "49": "LABEL_49",
62
+ "50": "LABEL_50",
63
+ "51": "LABEL_51",
64
+ "52": "LABEL_52",
65
+ "53": "LABEL_53",
66
+ "54": "LABEL_54",
67
+ "55": "LABEL_55",
68
+ "56": "LABEL_56",
69
+ "57": "LABEL_57",
70
+ "58": "LABEL_58",
71
+ "59": "LABEL_59",
72
+ "60": "LABEL_60"
73
+ },
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 3072,
76
+ "label2id": {
77
+ "LABEL_0": 0,
78
+ "LABEL_1": 1,
79
+ "LABEL_10": 10,
80
+ "LABEL_11": 11,
81
+ "LABEL_12": 12,
82
+ "LABEL_13": 13,
83
+ "LABEL_14": 14,
84
+ "LABEL_15": 15,
85
+ "LABEL_16": 16,
86
+ "LABEL_17": 17,
87
+ "LABEL_18": 18,
88
+ "LABEL_19": 19,
89
+ "LABEL_2": 2,
90
+ "LABEL_20": 20,
91
+ "LABEL_21": 21,
92
+ "LABEL_22": 22,
93
+ "LABEL_23": 23,
94
+ "LABEL_24": 24,
95
+ "LABEL_25": 25,
96
+ "LABEL_26": 26,
97
+ "LABEL_27": 27,
98
+ "LABEL_28": 28,
99
+ "LABEL_29": 29,
100
+ "LABEL_3": 3,
101
+ "LABEL_30": 30,
102
+ "LABEL_31": 31,
103
+ "LABEL_32": 32,
104
+ "LABEL_33": 33,
105
+ "LABEL_34": 34,
106
+ "LABEL_35": 35,
107
+ "LABEL_36": 36,
108
+ "LABEL_37": 37,
109
+ "LABEL_38": 38,
110
+ "LABEL_39": 39,
111
+ "LABEL_4": 4,
112
+ "LABEL_40": 40,
113
+ "LABEL_41": 41,
114
+ "LABEL_42": 42,
115
+ "LABEL_43": 43,
116
+ "LABEL_44": 44,
117
+ "LABEL_45": 45,
118
+ "LABEL_46": 46,
119
+ "LABEL_47": 47,
120
+ "LABEL_48": 48,
121
+ "LABEL_49": 49,
122
+ "LABEL_5": 5,
123
+ "LABEL_50": 50,
124
+ "LABEL_51": 51,
125
+ "LABEL_52": 52,
126
+ "LABEL_53": 53,
127
+ "LABEL_54": 54,
128
+ "LABEL_55": 55,
129
+ "LABEL_56": 56,
130
+ "LABEL_57": 57,
131
+ "LABEL_58": 58,
132
+ "LABEL_59": 59,
133
+ "LABEL_6": 6,
134
+ "LABEL_60": 60,
135
+ "LABEL_7": 7,
136
+ "LABEL_8": 8,
137
+ "LABEL_9": 9
138
+ },
139
+ "layer_norm_eps": 1e-12,
140
+ "max_position_embeddings": 514,
141
+ "model_type": "bert",
142
+ "num_attention_heads": 12,
143
+ "num_hidden_layers": 12,
144
+ "pad_token_id": 1,
145
+ "position_embedding_type": "absolute",
146
+ "tokenizer_class": "HerbertTokenizerFast",
147
+ "transformers_version": "4.26.0",
148
+ "type_vocab_size": 2,
149
+ "use_cache": true,
150
+ "vocab_size": 50000
151
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba1bd9a0ad0888cd183cafd1a4d3577d6a183660574a133c9e86469eb9b90959
3
+ size 495870140