lore-seri97 commited on
Commit
a2de511
·
verified ·
1 Parent(s): b1450cf

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - automated-planning
5
+ - masked-language-modeling
6
+ - bert
7
+ ---
8
+
9
+ # BERT for Automated Planning (Driverlog)
10
+
11
+ This is a BERT model pretrained on Masked Language Modelling (MLM), specifically developed to tackle tasks related to Automated Planning within the Driverlog domain.
12
+
13
+ You can find its full description, methodology, and experimental results in our paper: **[A Preliminary Study on BERT applied to Automated Planning](https://ceur-ws.org/Vol-3345/paper7_3460.pdf)**.
14
+
15
+ ## Usage
16
+
17
+ You can easily load the model and the tokenizer using the Hugging Face `transformers` library:
18
+
19
+ ```python
20
+ from transformers import BertForMaskedLM, PreTrainedTokenizerFast
21
+
22
+ tokenizer = PreTrainedTokenizerFast.from_pretrained("lore-seri97/bert-driverlog")
23
+ model = BertForMaskedLM.from_pretrained("lore-seri97/bert-driverlog")
24
+
25
+ ```
26
+
27
+ ## Citation
28
+
29
+ If you use this model in your research, please cite our work using the following BibTeX entry:
30
+
31
+ ```bibtex
32
+ @inproceedings{DBLP:conf/aiia/SerinaCGPS22,
33
+ author = {Lorenzo Serina and
34
+ Mattia Chiari and
35
+ Alfonso Emilio Gerevini and
36
+ Luca Putelli and
37
+ Ivan Serina},
38
+ editor = {Riccardo De Benedictis and
39
+ Nicola Gatti and
40
+ Marco Maratea and
41
+ Andrea Micheli and
42
+ Aniello Murano and
43
+ Enrico Scala and
44
+ Luciano Serafini and
45
+ Ivan Serina and
46
+ Alessandro Umbrico and
47
+ Mauro Vallati},
48
+ title = {A Preliminary Study on {BERT} applied to Automated Planning},
49
+ booktitle = {Proceedings of the 10th Italian workshop on Planning and Scheduling
50
+ {(IPS} 2022), {RCRA} Incontri {E} Confronti (RiCeRcA 2022), and the
51
+ workshop on Strategies, Prediction, Interaction, and Reasoning in
52
+ Italy {(SPIRIT} 2022) co-located with 21st International Conference
53
+ of the Italian Association for Artificial Intelligence (AIxIA 2022),
54
+ November 28 - December 2, 2022, University of Udine, Udine, Italy},
55
+ series = {{CEUR} Workshop Proceedings},
56
+ volume = {3345},
57
+ publisher = {CEUR-WS.org},
58
+ year = {2022},
59
+ url = {[https://ceur-ws.org/Vol-3345/paper7](https://ceur-ws.org/Vol-3345/paper7)\_3460.pdf},
60
+ timestamp = {Fri, 10 Mar 2023 16:23:01 +0100},
61
+ biburl = {[https://dblp.org/rec/conf/aiia/SerinaCGPS22.bib](https://dblp.org/rec/conf/aiia/SerinaCGPS22.bib)},
62
+ bibsource = {dblp computer science bibliography, [https://dblp.org](https://dblp.org)}
63
+ }
64
+
65
+ ```
66
+
67
  ---
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 2048,
12
+ "layer_norm_eps": 1e-12,
13
+ "max_position_embeddings": 512,
14
+ "model_type": "bert",
15
+ "num_attention_heads": 8,
16
+ "num_hidden_layers": 8,
17
+ "pad_token_id": 3,
18
+ "position_embedding_type": "absolute",
19
+ "torch_dtype": "float32",
20
+ "transformers_version": "4.30.0.dev0",
21
+ "type_vocab_size": 2,
22
+ "use_cache": true,
23
+ "vocab_size": 85
24
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 3,
4
+ "transformers_version": "4.30.0.dev0"
5
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cb3fa4a68612a6c4bcf36ccdc8745d2fe6d1041b5ea0703b85ca553c35aae4d
3
+ size 180714041
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
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "[UNK]",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "[CLS]",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "[SEP]",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "[PAD]",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 4,
44
+ "content": "[MASK]",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 5,
53
+ "content": "[A]",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ },
60
+ {
61
+ "id": 6,
62
+ "content": "[SI]",
63
+ "single_word": false,
64
+ "lstrip": false,
65
+ "rstrip": false,
66
+ "normalized": false,
67
+ "special": true
68
+ },
69
+ {
70
+ "id": 7,
71
+ "content": "[SG]",
72
+ "single_word": false,
73
+ "lstrip": false,
74
+ "rstrip": false,
75
+ "normalized": false,
76
+ "special": true
77
+ }
78
+ ],
79
+ "normalizer": {
80
+ "type": "Lowercase"
81
+ },
82
+ "pre_tokenizer": {
83
+ "type": "WhitespaceSplit"
84
+ },
85
+ "post_processor": {
86
+ "type": "TemplateProcessing",
87
+ "single": [
88
+ {
89
+ "SpecialToken": {
90
+ "id": "[CLS]",
91
+ "type_id": 0
92
+ }
93
+ },
94
+ {
95
+ "Sequence": {
96
+ "id": "A",
97
+ "type_id": 0
98
+ }
99
+ },
100
+ {
101
+ "SpecialToken": {
102
+ "id": "[SEP]",
103
+ "type_id": 0
104
+ }
105
+ }
106
+ ],
107
+ "pair": [
108
+ {
109
+ "SpecialToken": {
110
+ "id": "[CLS]",
111
+ "type_id": 0
112
+ }
113
+ },
114
+ {
115
+ "Sequence": {
116
+ "id": "A",
117
+ "type_id": 0
118
+ }
119
+ },
120
+ {
121
+ "SpecialToken": {
122
+ "id": "[SEP]",
123
+ "type_id": 0
124
+ }
125
+ },
126
+ {
127
+ "Sequence": {
128
+ "id": "B",
129
+ "type_id": 1
130
+ }
131
+ },
132
+ {
133
+ "SpecialToken": {
134
+ "id": "[SEP]",
135
+ "type_id": 1
136
+ }
137
+ }
138
+ ],
139
+ "special_tokens": {
140
+ "[CLS]": {
141
+ "id": "[CLS]",
142
+ "ids": [
143
+ 1
144
+ ],
145
+ "tokens": [
146
+ "[CLS]"
147
+ ]
148
+ },
149
+ "[SEP]": {
150
+ "id": "[SEP]",
151
+ "ids": [
152
+ 2
153
+ ],
154
+ "tokens": [
155
+ "[SEP]"
156
+ ]
157
+ }
158
+ }
159
+ },
160
+ "decoder": null,
161
+ "model": {
162
+ "type": "WordLevel",
163
+ "vocab": {
164
+ "[UNK]": 0,
165
+ "[CLS]": 1,
166
+ "[SEP]": 2,
167
+ "[PAD]": 3,
168
+ "[MASK]": 4,
169
+ "[A]": 5,
170
+ "[SI]": 6,
171
+ "[SG]": 7,
172
+ "at": 8,
173
+ "truck2": 9,
174
+ "truck1": 10,
175
+ "truck3": 11,
176
+ "drive-truck": 12,
177
+ "driver1": 13,
178
+ "driver2": 14,
179
+ "driver3": 15,
180
+ "walk": 16,
181
+ "s6": 17,
182
+ "s8": 18,
183
+ "s5": 19,
184
+ "s0": 20,
185
+ "s4": 21,
186
+ "s9": 22,
187
+ "s2": 23,
188
+ "s7": 24,
189
+ "s11": 25,
190
+ "s3": 26,
191
+ "s10": 27,
192
+ "s1": 28,
193
+ "load-truck": 29,
194
+ "unload-truck": 30,
195
+ "package4": 31,
196
+ "package6": 32,
197
+ "package1": 33,
198
+ "package7": 34,
199
+ "package2": 35,
200
+ "package3": 36,
201
+ "package5": 37,
202
+ "empty": 38,
203
+ "board-truck": 39,
204
+ "disembark-truck": 40,
205
+ "[a]": 41,
206
+ "[sg]": 42,
207
+ "[si]": 43,
208
+ "p3-7": 44,
209
+ "p9-7": 45,
210
+ "p6-7": 46,
211
+ "p7-1": 47,
212
+ "p8-4": 48,
213
+ "p4-7": 49,
214
+ "p6-4": 50,
215
+ "p0-8": 51,
216
+ "p2-0": 52,
217
+ "p7-10": 53,
218
+ "p11-0": 54,
219
+ "p11-1": 55,
220
+ "p5-0": 56,
221
+ "p0-2": 57,
222
+ "p6-10": 58,
223
+ "p11-10": 59,
224
+ "p8-11": 60,
225
+ "p2-6": 61,
226
+ "p8-3": 62,
227
+ "p1-4": 63,
228
+ "p1-0": 64,
229
+ "p1-2": 65,
230
+ "p2-1": 66,
231
+ "p6-2": 67,
232
+ "p6-8": 68,
233
+ "p8-5": 69,
234
+ "p11-4": 70,
235
+ "p4-6": 71,
236
+ "p2-3": 72,
237
+ "p6-11": 73,
238
+ "p2-5": 74,
239
+ "p3-9": 75,
240
+ "p4-0": 76,
241
+ "p2-7": 77,
242
+ "p6-5": 78,
243
+ "p10-0": 79,
244
+ "p9-4": 80,
245
+ "p3-2": 81,
246
+ "p7-9": 82,
247
+ "p3-1": 83,
248
+ "p0-1": 84
249
+ },
250
+ "unk_token": "[UNK]"
251
+ }
252
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "action_token": "[A]",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "goal_token": "[SG]",
6
+ "init_token": "[SI]",
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "padding": "max_length",
11
+ "sep_token": "[SEP]",
12
+ "tokenizer_class": "PreTrainedTokenizerFast",
13
+ "truncation": true,
14
+ "unk_token": "[UNK]"
15
+ }