lore-seri97 commited on
Commit
ccfbf93
·
verified ·
1 Parent(s): 12b2fc1

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - automated-planning
5
+ - masked-language-modeling
6
+ - bert
7
+ ---
8
+
9
+ # BERT for Automated Planning (Logistics)
10
+
11
+ This is a BERT model pretrained on Masked Language Modelling (MLM), specifically developed to tackle tasks related to Automated Planning within the Logistics 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-logistics")
23
+ model = BertForMaskedLM.from_pretrained("lore-seri97/bert-logistics")
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": 67
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:7c414c75eed491bfeb83cec37c439d1c5bb0c078a13a56911af7bc476394542f
3
+ size 180658681
special_tokens_map.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "goal_token": "[SG]",
7
+ "init_token": "[SI]",
8
+ "action_token": "[A]",
9
+ "unk_token": "[UNK]"
10
+ }
tokenizer.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "drive-truck": 9,
174
+ "load-truck": 10,
175
+ "unload-truck": 11,
176
+ "tru5": 12,
177
+ "tru3": 13,
178
+ "tru1": 14,
179
+ "tru2": 15,
180
+ "tru4": 16,
181
+ "apt4": 17,
182
+ "apt5": 18,
183
+ "apt1": 19,
184
+ "apt3": 20,
185
+ "apt6": 21,
186
+ "apt8": 22,
187
+ "apt7": 23,
188
+ "apt2": 24,
189
+ "fly-airplane": 25,
190
+ "load-airplane": 26,
191
+ "unload-airplane": 27,
192
+ "pos66": 28,
193
+ "pos22": 29,
194
+ "pos21": 30,
195
+ "pos33": 31,
196
+ "pos55": 32,
197
+ "pos13": 33,
198
+ "pos77": 34,
199
+ "pos12": 35,
200
+ "pos23": 36,
201
+ "pos11": 37,
202
+ "pos44": 38,
203
+ "obj55": 39,
204
+ "obj44": 40,
205
+ "obj23": 41,
206
+ "obj00": 42,
207
+ "obj33": 43,
208
+ "obj88": 44,
209
+ "obj11": 45,
210
+ "obj77": 46,
211
+ "obj99": 47,
212
+ "obj13": 48,
213
+ "obj12": 49,
214
+ "obj21": 50,
215
+ "obj66": 51,
216
+ "obj22": 52,
217
+ "apn7": 53,
218
+ "apn1": 54,
219
+ "apn5": 55,
220
+ "apn2": 56,
221
+ "apn4": 57,
222
+ "apn8": 58,
223
+ "apn6": 59,
224
+ "apn3": 60,
225
+ "cit1": 61,
226
+ "cit3": 62,
227
+ "cit5": 63,
228
+ "cit4": 64,
229
+ "cit6": 65,
230
+ "cit2": 66
231
+ },
232
+ "unk_token": "[UNK]"
233
+ }
234
+ }
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
+ }