gbenson commited on
Commit
2bb0146
·
verified ·
1 Parent(s): c22d8f3

Upload update.ipynb

Browse files
Files changed (1) hide show
  1. update.ipynb +1751 -0
update.ipynb ADDED
@@ -0,0 +1,1751 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": []
7
+ },
8
+ "kernelspec": {
9
+ "name": "python3",
10
+ "display_name": "Python 3"
11
+ },
12
+ "language_info": {
13
+ "name": "python"
14
+ },
15
+ "widgets": {
16
+ "application/vnd.jupyter.widget-state+json": {
17
+ "4bbee348a78f44d39bb51049b5ee9646": {
18
+ "model_module": "@jupyter-widgets/controls",
19
+ "model_name": "HBoxModel",
20
+ "model_module_version": "1.5.0",
21
+ "state": {
22
+ "_dom_classes": [],
23
+ "_model_module": "@jupyter-widgets/controls",
24
+ "_model_module_version": "1.5.0",
25
+ "_model_name": "HBoxModel",
26
+ "_view_count": null,
27
+ "_view_module": "@jupyter-widgets/controls",
28
+ "_view_module_version": "1.5.0",
29
+ "_view_name": "HBoxView",
30
+ "box_style": "",
31
+ "children": [
32
+ "IPY_MODEL_f92269931ef2478f80b1551be0d6ea35",
33
+ "IPY_MODEL_9b27366473f74c73a4d797b68d23f142",
34
+ "IPY_MODEL_a40e7372efb040d485c761bb1a5576e5"
35
+ ],
36
+ "layout": "IPY_MODEL_19bfb2c7f2794b5bb1ee8187c0337b0b"
37
+ }
38
+ },
39
+ "f92269931ef2478f80b1551be0d6ea35": {
40
+ "model_module": "@jupyter-widgets/controls",
41
+ "model_name": "HTMLModel",
42
+ "model_module_version": "1.5.0",
43
+ "state": {
44
+ "_dom_classes": [],
45
+ "_model_module": "@jupyter-widgets/controls",
46
+ "_model_module_version": "1.5.0",
47
+ "_model_name": "HTMLModel",
48
+ "_view_count": null,
49
+ "_view_module": "@jupyter-widgets/controls",
50
+ "_view_module_version": "1.5.0",
51
+ "_view_name": "HTMLView",
52
+ "description": "",
53
+ "description_tooltip": null,
54
+ "layout": "IPY_MODEL_0eb726bddabe4210b322adba424c7934",
55
+ "placeholder": "​",
56
+ "style": "IPY_MODEL_7353c573e9a24a369aabc37d2cf1919d",
57
+ "value": "Uploading the dataset shards: 100%"
58
+ }
59
+ },
60
+ "9b27366473f74c73a4d797b68d23f142": {
61
+ "model_module": "@jupyter-widgets/controls",
62
+ "model_name": "FloatProgressModel",
63
+ "model_module_version": "1.5.0",
64
+ "state": {
65
+ "_dom_classes": [],
66
+ "_model_module": "@jupyter-widgets/controls",
67
+ "_model_module_version": "1.5.0",
68
+ "_model_name": "FloatProgressModel",
69
+ "_view_count": null,
70
+ "_view_module": "@jupyter-widgets/controls",
71
+ "_view_module_version": "1.5.0",
72
+ "_view_name": "ProgressView",
73
+ "bar_style": "success",
74
+ "description": "",
75
+ "description_tooltip": null,
76
+ "layout": "IPY_MODEL_928dc67f581d48c0890b4ab3f718fb2c",
77
+ "max": 1,
78
+ "min": 0,
79
+ "orientation": "horizontal",
80
+ "style": "IPY_MODEL_ffc15229b57749a7a5e511428930381b",
81
+ "value": 1
82
+ }
83
+ },
84
+ "a40e7372efb040d485c761bb1a5576e5": {
85
+ "model_module": "@jupyter-widgets/controls",
86
+ "model_name": "HTMLModel",
87
+ "model_module_version": "1.5.0",
88
+ "state": {
89
+ "_dom_classes": [],
90
+ "_model_module": "@jupyter-widgets/controls",
91
+ "_model_module_version": "1.5.0",
92
+ "_model_name": "HTMLModel",
93
+ "_view_count": null,
94
+ "_view_module": "@jupyter-widgets/controls",
95
+ "_view_module_version": "1.5.0",
96
+ "_view_name": "HTMLView",
97
+ "description": "",
98
+ "description_tooltip": null,
99
+ "layout": "IPY_MODEL_6edb5421b3c34cccaca8c136067cb672",
100
+ "placeholder": "​",
101
+ "style": "IPY_MODEL_f68961f1af6d4a17804188d871f858c6",
102
+ "value": " 1/1 [00:09<00:00,  9.72s/it]"
103
+ }
104
+ },
105
+ "19bfb2c7f2794b5bb1ee8187c0337b0b": {
106
+ "model_module": "@jupyter-widgets/base",
107
+ "model_name": "LayoutModel",
108
+ "model_module_version": "1.2.0",
109
+ "state": {
110
+ "_model_module": "@jupyter-widgets/base",
111
+ "_model_module_version": "1.2.0",
112
+ "_model_name": "LayoutModel",
113
+ "_view_count": null,
114
+ "_view_module": "@jupyter-widgets/base",
115
+ "_view_module_version": "1.2.0",
116
+ "_view_name": "LayoutView",
117
+ "align_content": null,
118
+ "align_items": null,
119
+ "align_self": null,
120
+ "border": null,
121
+ "bottom": null,
122
+ "display": null,
123
+ "flex": null,
124
+ "flex_flow": null,
125
+ "grid_area": null,
126
+ "grid_auto_columns": null,
127
+ "grid_auto_flow": null,
128
+ "grid_auto_rows": null,
129
+ "grid_column": null,
130
+ "grid_gap": null,
131
+ "grid_row": null,
132
+ "grid_template_areas": null,
133
+ "grid_template_columns": null,
134
+ "grid_template_rows": null,
135
+ "height": null,
136
+ "justify_content": null,
137
+ "justify_items": null,
138
+ "left": null,
139
+ "margin": null,
140
+ "max_height": null,
141
+ "max_width": null,
142
+ "min_height": null,
143
+ "min_width": null,
144
+ "object_fit": null,
145
+ "object_position": null,
146
+ "order": null,
147
+ "overflow": null,
148
+ "overflow_x": null,
149
+ "overflow_y": null,
150
+ "padding": null,
151
+ "right": null,
152
+ "top": null,
153
+ "visibility": null,
154
+ "width": null
155
+ }
156
+ },
157
+ "0eb726bddabe4210b322adba424c7934": {
158
+ "model_module": "@jupyter-widgets/base",
159
+ "model_name": "LayoutModel",
160
+ "model_module_version": "1.2.0",
161
+ "state": {
162
+ "_model_module": "@jupyter-widgets/base",
163
+ "_model_module_version": "1.2.0",
164
+ "_model_name": "LayoutModel",
165
+ "_view_count": null,
166
+ "_view_module": "@jupyter-widgets/base",
167
+ "_view_module_version": "1.2.0",
168
+ "_view_name": "LayoutView",
169
+ "align_content": null,
170
+ "align_items": null,
171
+ "align_self": null,
172
+ "border": null,
173
+ "bottom": null,
174
+ "display": null,
175
+ "flex": null,
176
+ "flex_flow": null,
177
+ "grid_area": null,
178
+ "grid_auto_columns": null,
179
+ "grid_auto_flow": null,
180
+ "grid_auto_rows": null,
181
+ "grid_column": null,
182
+ "grid_gap": null,
183
+ "grid_row": null,
184
+ "grid_template_areas": null,
185
+ "grid_template_columns": null,
186
+ "grid_template_rows": null,
187
+ "height": null,
188
+ "justify_content": null,
189
+ "justify_items": null,
190
+ "left": null,
191
+ "margin": null,
192
+ "max_height": null,
193
+ "max_width": null,
194
+ "min_height": null,
195
+ "min_width": null,
196
+ "object_fit": null,
197
+ "object_position": null,
198
+ "order": null,
199
+ "overflow": null,
200
+ "overflow_x": null,
201
+ "overflow_y": null,
202
+ "padding": null,
203
+ "right": null,
204
+ "top": null,
205
+ "visibility": null,
206
+ "width": null
207
+ }
208
+ },
209
+ "7353c573e9a24a369aabc37d2cf1919d": {
210
+ "model_module": "@jupyter-widgets/controls",
211
+ "model_name": "DescriptionStyleModel",
212
+ "model_module_version": "1.5.0",
213
+ "state": {
214
+ "_model_module": "@jupyter-widgets/controls",
215
+ "_model_module_version": "1.5.0",
216
+ "_model_name": "DescriptionStyleModel",
217
+ "_view_count": null,
218
+ "_view_module": "@jupyter-widgets/base",
219
+ "_view_module_version": "1.2.0",
220
+ "_view_name": "StyleView",
221
+ "description_width": ""
222
+ }
223
+ },
224
+ "928dc67f581d48c0890b4ab3f718fb2c": {
225
+ "model_module": "@jupyter-widgets/base",
226
+ "model_name": "LayoutModel",
227
+ "model_module_version": "1.2.0",
228
+ "state": {
229
+ "_model_module": "@jupyter-widgets/base",
230
+ "_model_module_version": "1.2.0",
231
+ "_model_name": "LayoutModel",
232
+ "_view_count": null,
233
+ "_view_module": "@jupyter-widgets/base",
234
+ "_view_module_version": "1.2.0",
235
+ "_view_name": "LayoutView",
236
+ "align_content": null,
237
+ "align_items": null,
238
+ "align_self": null,
239
+ "border": null,
240
+ "bottom": null,
241
+ "display": null,
242
+ "flex": null,
243
+ "flex_flow": null,
244
+ "grid_area": null,
245
+ "grid_auto_columns": null,
246
+ "grid_auto_flow": null,
247
+ "grid_auto_rows": null,
248
+ "grid_column": null,
249
+ "grid_gap": null,
250
+ "grid_row": null,
251
+ "grid_template_areas": null,
252
+ "grid_template_columns": null,
253
+ "grid_template_rows": null,
254
+ "height": null,
255
+ "justify_content": null,
256
+ "justify_items": null,
257
+ "left": null,
258
+ "margin": null,
259
+ "max_height": null,
260
+ "max_width": null,
261
+ "min_height": null,
262
+ "min_width": null,
263
+ "object_fit": null,
264
+ "object_position": null,
265
+ "order": null,
266
+ "overflow": null,
267
+ "overflow_x": null,
268
+ "overflow_y": null,
269
+ "padding": null,
270
+ "right": null,
271
+ "top": null,
272
+ "visibility": null,
273
+ "width": null
274
+ }
275
+ },
276
+ "ffc15229b57749a7a5e511428930381b": {
277
+ "model_module": "@jupyter-widgets/controls",
278
+ "model_name": "ProgressStyleModel",
279
+ "model_module_version": "1.5.0",
280
+ "state": {
281
+ "_model_module": "@jupyter-widgets/controls",
282
+ "_model_module_version": "1.5.0",
283
+ "_model_name": "ProgressStyleModel",
284
+ "_view_count": null,
285
+ "_view_module": "@jupyter-widgets/base",
286
+ "_view_module_version": "1.2.0",
287
+ "_view_name": "StyleView",
288
+ "bar_color": null,
289
+ "description_width": ""
290
+ }
291
+ },
292
+ "6edb5421b3c34cccaca8c136067cb672": {
293
+ "model_module": "@jupyter-widgets/base",
294
+ "model_name": "LayoutModel",
295
+ "model_module_version": "1.2.0",
296
+ "state": {
297
+ "_model_module": "@jupyter-widgets/base",
298
+ "_model_module_version": "1.2.0",
299
+ "_model_name": "LayoutModel",
300
+ "_view_count": null,
301
+ "_view_module": "@jupyter-widgets/base",
302
+ "_view_module_version": "1.2.0",
303
+ "_view_name": "LayoutView",
304
+ "align_content": null,
305
+ "align_items": null,
306
+ "align_self": null,
307
+ "border": null,
308
+ "bottom": null,
309
+ "display": null,
310
+ "flex": null,
311
+ "flex_flow": null,
312
+ "grid_area": null,
313
+ "grid_auto_columns": null,
314
+ "grid_auto_flow": null,
315
+ "grid_auto_rows": null,
316
+ "grid_column": null,
317
+ "grid_gap": null,
318
+ "grid_row": null,
319
+ "grid_template_areas": null,
320
+ "grid_template_columns": null,
321
+ "grid_template_rows": null,
322
+ "height": null,
323
+ "justify_content": null,
324
+ "justify_items": null,
325
+ "left": null,
326
+ "margin": null,
327
+ "max_height": null,
328
+ "max_width": null,
329
+ "min_height": null,
330
+ "min_width": null,
331
+ "object_fit": null,
332
+ "object_position": null,
333
+ "order": null,
334
+ "overflow": null,
335
+ "overflow_x": null,
336
+ "overflow_y": null,
337
+ "padding": null,
338
+ "right": null,
339
+ "top": null,
340
+ "visibility": null,
341
+ "width": null
342
+ }
343
+ },
344
+ "f68961f1af6d4a17804188d871f858c6": {
345
+ "model_module": "@jupyter-widgets/controls",
346
+ "model_name": "DescriptionStyleModel",
347
+ "model_module_version": "1.5.0",
348
+ "state": {
349
+ "_model_module": "@jupyter-widgets/controls",
350
+ "_model_module_version": "1.5.0",
351
+ "_model_name": "DescriptionStyleModel",
352
+ "_view_count": null,
353
+ "_view_module": "@jupyter-widgets/base",
354
+ "_view_module_version": "1.2.0",
355
+ "_view_name": "StyleView",
356
+ "description_width": ""
357
+ }
358
+ },
359
+ "d572e70402f54b23a317ea821142a439": {
360
+ "model_module": "@jupyter-widgets/controls",
361
+ "model_name": "HBoxModel",
362
+ "model_module_version": "1.5.0",
363
+ "state": {
364
+ "_dom_classes": [],
365
+ "_model_module": "@jupyter-widgets/controls",
366
+ "_model_module_version": "1.5.0",
367
+ "_model_name": "HBoxModel",
368
+ "_view_count": null,
369
+ "_view_module": "@jupyter-widgets/controls",
370
+ "_view_module_version": "1.5.0",
371
+ "_view_name": "HBoxView",
372
+ "box_style": "",
373
+ "children": [
374
+ "IPY_MODEL_6e7aecc23e6a461dbae8734563390f9c",
375
+ "IPY_MODEL_9ed714cfa6a84fa89200207d021badcf",
376
+ "IPY_MODEL_a361d4482c7142d9b4df7040c189453c"
377
+ ],
378
+ "layout": "IPY_MODEL_f2e281d3067f412db6045bd422bb4b62"
379
+ }
380
+ },
381
+ "6e7aecc23e6a461dbae8734563390f9c": {
382
+ "model_module": "@jupyter-widgets/controls",
383
+ "model_name": "HTMLModel",
384
+ "model_module_version": "1.5.0",
385
+ "state": {
386
+ "_dom_classes": [],
387
+ "_model_module": "@jupyter-widgets/controls",
388
+ "_model_module_version": "1.5.0",
389
+ "_model_name": "HTMLModel",
390
+ "_view_count": null,
391
+ "_view_module": "@jupyter-widgets/controls",
392
+ "_view_module_version": "1.5.0",
393
+ "_view_name": "HTMLView",
394
+ "description": "",
395
+ "description_tooltip": null,
396
+ "layout": "IPY_MODEL_1bec637aef4b4be0a4188644a11c609f",
397
+ "placeholder": "​",
398
+ "style": "IPY_MODEL_03610c15ddb740ae8d479579d93e7cd9",
399
+ "value": "Creating parquet from Arrow format: 100%"
400
+ }
401
+ },
402
+ "9ed714cfa6a84fa89200207d021badcf": {
403
+ "model_module": "@jupyter-widgets/controls",
404
+ "model_name": "FloatProgressModel",
405
+ "model_module_version": "1.5.0",
406
+ "state": {
407
+ "_dom_classes": [],
408
+ "_model_module": "@jupyter-widgets/controls",
409
+ "_model_module_version": "1.5.0",
410
+ "_model_name": "FloatProgressModel",
411
+ "_view_count": null,
412
+ "_view_module": "@jupyter-widgets/controls",
413
+ "_view_module_version": "1.5.0",
414
+ "_view_name": "ProgressView",
415
+ "bar_style": "success",
416
+ "description": "",
417
+ "description_tooltip": null,
418
+ "layout": "IPY_MODEL_82190d849926401fa3ad90032ad13eef",
419
+ "max": 1617,
420
+ "min": 0,
421
+ "orientation": "horizontal",
422
+ "style": "IPY_MODEL_a4874c30cca440099ba7c7fcfd8a96a8",
423
+ "value": 1617
424
+ }
425
+ },
426
+ "a361d4482c7142d9b4df7040c189453c": {
427
+ "model_module": "@jupyter-widgets/controls",
428
+ "model_name": "HTMLModel",
429
+ "model_module_version": "1.5.0",
430
+ "state": {
431
+ "_dom_classes": [],
432
+ "_model_module": "@jupyter-widgets/controls",
433
+ "_model_module_version": "1.5.0",
434
+ "_model_name": "HTMLModel",
435
+ "_view_count": null,
436
+ "_view_module": "@jupyter-widgets/controls",
437
+ "_view_module_version": "1.5.0",
438
+ "_view_name": "HTMLView",
439
+ "description": "",
440
+ "description_tooltip": null,
441
+ "layout": "IPY_MODEL_f9a8585a28bc403e83a9869a1e79714e",
442
+ "placeholder": "​",
443
+ "style": "IPY_MODEL_bd4f34da0244479bb703824bf6bd57c3",
444
+ "value": " 1617/1617 [00:00<00:00, 2593.85ba/s]"
445
+ }
446
+ },
447
+ "f2e281d3067f412db6045bd422bb4b62": {
448
+ "model_module": "@jupyter-widgets/base",
449
+ "model_name": "LayoutModel",
450
+ "model_module_version": "1.2.0",
451
+ "state": {
452
+ "_model_module": "@jupyter-widgets/base",
453
+ "_model_module_version": "1.2.0",
454
+ "_model_name": "LayoutModel",
455
+ "_view_count": null,
456
+ "_view_module": "@jupyter-widgets/base",
457
+ "_view_module_version": "1.2.0",
458
+ "_view_name": "LayoutView",
459
+ "align_content": null,
460
+ "align_items": null,
461
+ "align_self": null,
462
+ "border": null,
463
+ "bottom": null,
464
+ "display": null,
465
+ "flex": null,
466
+ "flex_flow": null,
467
+ "grid_area": null,
468
+ "grid_auto_columns": null,
469
+ "grid_auto_flow": null,
470
+ "grid_auto_rows": null,
471
+ "grid_column": null,
472
+ "grid_gap": null,
473
+ "grid_row": null,
474
+ "grid_template_areas": null,
475
+ "grid_template_columns": null,
476
+ "grid_template_rows": null,
477
+ "height": null,
478
+ "justify_content": null,
479
+ "justify_items": null,
480
+ "left": null,
481
+ "margin": null,
482
+ "max_height": null,
483
+ "max_width": null,
484
+ "min_height": null,
485
+ "min_width": null,
486
+ "object_fit": null,
487
+ "object_position": null,
488
+ "order": null,
489
+ "overflow": null,
490
+ "overflow_x": null,
491
+ "overflow_y": null,
492
+ "padding": null,
493
+ "right": null,
494
+ "top": null,
495
+ "visibility": null,
496
+ "width": null
497
+ }
498
+ },
499
+ "1bec637aef4b4be0a4188644a11c609f": {
500
+ "model_module": "@jupyter-widgets/base",
501
+ "model_name": "LayoutModel",
502
+ "model_module_version": "1.2.0",
503
+ "state": {
504
+ "_model_module": "@jupyter-widgets/base",
505
+ "_model_module_version": "1.2.0",
506
+ "_model_name": "LayoutModel",
507
+ "_view_count": null,
508
+ "_view_module": "@jupyter-widgets/base",
509
+ "_view_module_version": "1.2.0",
510
+ "_view_name": "LayoutView",
511
+ "align_content": null,
512
+ "align_items": null,
513
+ "align_self": null,
514
+ "border": null,
515
+ "bottom": null,
516
+ "display": null,
517
+ "flex": null,
518
+ "flex_flow": null,
519
+ "grid_area": null,
520
+ "grid_auto_columns": null,
521
+ "grid_auto_flow": null,
522
+ "grid_auto_rows": null,
523
+ "grid_column": null,
524
+ "grid_gap": null,
525
+ "grid_row": null,
526
+ "grid_template_areas": null,
527
+ "grid_template_columns": null,
528
+ "grid_template_rows": null,
529
+ "height": null,
530
+ "justify_content": null,
531
+ "justify_items": null,
532
+ "left": null,
533
+ "margin": null,
534
+ "max_height": null,
535
+ "max_width": null,
536
+ "min_height": null,
537
+ "min_width": null,
538
+ "object_fit": null,
539
+ "object_position": null,
540
+ "order": null,
541
+ "overflow": null,
542
+ "overflow_x": null,
543
+ "overflow_y": null,
544
+ "padding": null,
545
+ "right": null,
546
+ "top": null,
547
+ "visibility": null,
548
+ "width": null
549
+ }
550
+ },
551
+ "03610c15ddb740ae8d479579d93e7cd9": {
552
+ "model_module": "@jupyter-widgets/controls",
553
+ "model_name": "DescriptionStyleModel",
554
+ "model_module_version": "1.5.0",
555
+ "state": {
556
+ "_model_module": "@jupyter-widgets/controls",
557
+ "_model_module_version": "1.5.0",
558
+ "_model_name": "DescriptionStyleModel",
559
+ "_view_count": null,
560
+ "_view_module": "@jupyter-widgets/base",
561
+ "_view_module_version": "1.2.0",
562
+ "_view_name": "StyleView",
563
+ "description_width": ""
564
+ }
565
+ },
566
+ "82190d849926401fa3ad90032ad13eef": {
567
+ "model_module": "@jupyter-widgets/base",
568
+ "model_name": "LayoutModel",
569
+ "model_module_version": "1.2.0",
570
+ "state": {
571
+ "_model_module": "@jupyter-widgets/base",
572
+ "_model_module_version": "1.2.0",
573
+ "_model_name": "LayoutModel",
574
+ "_view_count": null,
575
+ "_view_module": "@jupyter-widgets/base",
576
+ "_view_module_version": "1.2.0",
577
+ "_view_name": "LayoutView",
578
+ "align_content": null,
579
+ "align_items": null,
580
+ "align_self": null,
581
+ "border": null,
582
+ "bottom": null,
583
+ "display": null,
584
+ "flex": null,
585
+ "flex_flow": null,
586
+ "grid_area": null,
587
+ "grid_auto_columns": null,
588
+ "grid_auto_flow": null,
589
+ "grid_auto_rows": null,
590
+ "grid_column": null,
591
+ "grid_gap": null,
592
+ "grid_row": null,
593
+ "grid_template_areas": null,
594
+ "grid_template_columns": null,
595
+ "grid_template_rows": null,
596
+ "height": null,
597
+ "justify_content": null,
598
+ "justify_items": null,
599
+ "left": null,
600
+ "margin": null,
601
+ "max_height": null,
602
+ "max_width": null,
603
+ "min_height": null,
604
+ "min_width": null,
605
+ "object_fit": null,
606
+ "object_position": null,
607
+ "order": null,
608
+ "overflow": null,
609
+ "overflow_x": null,
610
+ "overflow_y": null,
611
+ "padding": null,
612
+ "right": null,
613
+ "top": null,
614
+ "visibility": null,
615
+ "width": null
616
+ }
617
+ },
618
+ "a4874c30cca440099ba7c7fcfd8a96a8": {
619
+ "model_module": "@jupyter-widgets/controls",
620
+ "model_name": "ProgressStyleModel",
621
+ "model_module_version": "1.5.0",
622
+ "state": {
623
+ "_model_module": "@jupyter-widgets/controls",
624
+ "_model_module_version": "1.5.0",
625
+ "_model_name": "ProgressStyleModel",
626
+ "_view_count": null,
627
+ "_view_module": "@jupyter-widgets/base",
628
+ "_view_module_version": "1.2.0",
629
+ "_view_name": "StyleView",
630
+ "bar_color": null,
631
+ "description_width": ""
632
+ }
633
+ },
634
+ "f9a8585a28bc403e83a9869a1e79714e": {
635
+ "model_module": "@jupyter-widgets/base",
636
+ "model_name": "LayoutModel",
637
+ "model_module_version": "1.2.0",
638
+ "state": {
639
+ "_model_module": "@jupyter-widgets/base",
640
+ "_model_module_version": "1.2.0",
641
+ "_model_name": "LayoutModel",
642
+ "_view_count": null,
643
+ "_view_module": "@jupyter-widgets/base",
644
+ "_view_module_version": "1.2.0",
645
+ "_view_name": "LayoutView",
646
+ "align_content": null,
647
+ "align_items": null,
648
+ "align_self": null,
649
+ "border": null,
650
+ "bottom": null,
651
+ "display": null,
652
+ "flex": null,
653
+ "flex_flow": null,
654
+ "grid_area": null,
655
+ "grid_auto_columns": null,
656
+ "grid_auto_flow": null,
657
+ "grid_auto_rows": null,
658
+ "grid_column": null,
659
+ "grid_gap": null,
660
+ "grid_row": null,
661
+ "grid_template_areas": null,
662
+ "grid_template_columns": null,
663
+ "grid_template_rows": null,
664
+ "height": null,
665
+ "justify_content": null,
666
+ "justify_items": null,
667
+ "left": null,
668
+ "margin": null,
669
+ "max_height": null,
670
+ "max_width": null,
671
+ "min_height": null,
672
+ "min_width": null,
673
+ "object_fit": null,
674
+ "object_position": null,
675
+ "order": null,
676
+ "overflow": null,
677
+ "overflow_x": null,
678
+ "overflow_y": null,
679
+ "padding": null,
680
+ "right": null,
681
+ "top": null,
682
+ "visibility": null,
683
+ "width": null
684
+ }
685
+ },
686
+ "bd4f34da0244479bb703824bf6bd57c3": {
687
+ "model_module": "@jupyter-widgets/controls",
688
+ "model_name": "DescriptionStyleModel",
689
+ "model_module_version": "1.5.0",
690
+ "state": {
691
+ "_model_module": "@jupyter-widgets/controls",
692
+ "_model_module_version": "1.5.0",
693
+ "_model_name": "DescriptionStyleModel",
694
+ "_view_count": null,
695
+ "_view_module": "@jupyter-widgets/base",
696
+ "_view_module_version": "1.2.0",
697
+ "_view_name": "StyleView",
698
+ "description_width": ""
699
+ }
700
+ },
701
+ "f63cdc1af818446e9a0c34a47f48e33f": {
702
+ "model_module": "@jupyter-widgets/controls",
703
+ "model_name": "HBoxModel",
704
+ "model_module_version": "1.5.0",
705
+ "state": {
706
+ "_dom_classes": [],
707
+ "_model_module": "@jupyter-widgets/controls",
708
+ "_model_module_version": "1.5.0",
709
+ "_model_name": "HBoxModel",
710
+ "_view_count": null,
711
+ "_view_module": "@jupyter-widgets/controls",
712
+ "_view_module_version": "1.5.0",
713
+ "_view_name": "HBoxView",
714
+ "box_style": "",
715
+ "children": [
716
+ "IPY_MODEL_7cbea630cd164a5ab9459c7e4240d642",
717
+ "IPY_MODEL_d9f7d90af2ac43989d0d9b1607282e1b",
718
+ "IPY_MODEL_834a37e5d9ac48e8825d0bbba0666301"
719
+ ],
720
+ "layout": "IPY_MODEL_80fded30011d454abf986d120e8c997c"
721
+ }
722
+ },
723
+ "7cbea630cd164a5ab9459c7e4240d642": {
724
+ "model_module": "@jupyter-widgets/controls",
725
+ "model_name": "HTMLModel",
726
+ "model_module_version": "1.5.0",
727
+ "state": {
728
+ "_dom_classes": [],
729
+ "_model_module": "@jupyter-widgets/controls",
730
+ "_model_module_version": "1.5.0",
731
+ "_model_name": "HTMLModel",
732
+ "_view_count": null,
733
+ "_view_module": "@jupyter-widgets/controls",
734
+ "_view_module_version": "1.5.0",
735
+ "_view_name": "HTMLView",
736
+ "description": "",
737
+ "description_tooltip": null,
738
+ "layout": "IPY_MODEL_b2276aee3b0b4177a437d1918f79dbe7",
739
+ "placeholder": "​",
740
+ "style": "IPY_MODEL_6019099f01704eae8511470f5dabafe9",
741
+ "value": "README.md: 100%"
742
+ }
743
+ },
744
+ "d9f7d90af2ac43989d0d9b1607282e1b": {
745
+ "model_module": "@jupyter-widgets/controls",
746
+ "model_name": "FloatProgressModel",
747
+ "model_module_version": "1.5.0",
748
+ "state": {
749
+ "_dom_classes": [],
750
+ "_model_module": "@jupyter-widgets/controls",
751
+ "_model_module_version": "1.5.0",
752
+ "_model_name": "FloatProgressModel",
753
+ "_view_count": null,
754
+ "_view_module": "@jupyter-widgets/controls",
755
+ "_view_module_version": "1.5.0",
756
+ "_view_name": "ProgressView",
757
+ "bar_style": "success",
758
+ "description": "",
759
+ "description_tooltip": null,
760
+ "layout": "IPY_MODEL_e71bc8b54aa74d9db035a0ffdef02ad2",
761
+ "max": 1177,
762
+ "min": 0,
763
+ "orientation": "horizontal",
764
+ "style": "IPY_MODEL_9476148a2b3549599340752404189f73",
765
+ "value": 1177
766
+ }
767
+ },
768
+ "834a37e5d9ac48e8825d0bbba0666301": {
769
+ "model_module": "@jupyter-widgets/controls",
770
+ "model_name": "HTMLModel",
771
+ "model_module_version": "1.5.0",
772
+ "state": {
773
+ "_dom_classes": [],
774
+ "_model_module": "@jupyter-widgets/controls",
775
+ "_model_module_version": "1.5.0",
776
+ "_model_name": "HTMLModel",
777
+ "_view_count": null,
778
+ "_view_module": "@jupyter-widgets/controls",
779
+ "_view_module_version": "1.5.0",
780
+ "_view_name": "HTMLView",
781
+ "description": "",
782
+ "description_tooltip": null,
783
+ "layout": "IPY_MODEL_d39a0394fd99465c929ba6ae4114dcbf",
784
+ "placeholder": "​",
785
+ "style": "IPY_MODEL_b74b6520010740b98203f20bd4147ec7",
786
+ "value": " 1.18k/1.18k [00:00<00:00, 82.0kB/s]"
787
+ }
788
+ },
789
+ "80fded30011d454abf986d120e8c997c": {
790
+ "model_module": "@jupyter-widgets/base",
791
+ "model_name": "LayoutModel",
792
+ "model_module_version": "1.2.0",
793
+ "state": {
794
+ "_model_module": "@jupyter-widgets/base",
795
+ "_model_module_version": "1.2.0",
796
+ "_model_name": "LayoutModel",
797
+ "_view_count": null,
798
+ "_view_module": "@jupyter-widgets/base",
799
+ "_view_module_version": "1.2.0",
800
+ "_view_name": "LayoutView",
801
+ "align_content": null,
802
+ "align_items": null,
803
+ "align_self": null,
804
+ "border": null,
805
+ "bottom": null,
806
+ "display": null,
807
+ "flex": null,
808
+ "flex_flow": null,
809
+ "grid_area": null,
810
+ "grid_auto_columns": null,
811
+ "grid_auto_flow": null,
812
+ "grid_auto_rows": null,
813
+ "grid_column": null,
814
+ "grid_gap": null,
815
+ "grid_row": null,
816
+ "grid_template_areas": null,
817
+ "grid_template_columns": null,
818
+ "grid_template_rows": null,
819
+ "height": null,
820
+ "justify_content": null,
821
+ "justify_items": null,
822
+ "left": null,
823
+ "margin": null,
824
+ "max_height": null,
825
+ "max_width": null,
826
+ "min_height": null,
827
+ "min_width": null,
828
+ "object_fit": null,
829
+ "object_position": null,
830
+ "order": null,
831
+ "overflow": null,
832
+ "overflow_x": null,
833
+ "overflow_y": null,
834
+ "padding": null,
835
+ "right": null,
836
+ "top": null,
837
+ "visibility": null,
838
+ "width": null
839
+ }
840
+ },
841
+ "b2276aee3b0b4177a437d1918f79dbe7": {
842
+ "model_module": "@jupyter-widgets/base",
843
+ "model_name": "LayoutModel",
844
+ "model_module_version": "1.2.0",
845
+ "state": {
846
+ "_model_module": "@jupyter-widgets/base",
847
+ "_model_module_version": "1.2.0",
848
+ "_model_name": "LayoutModel",
849
+ "_view_count": null,
850
+ "_view_module": "@jupyter-widgets/base",
851
+ "_view_module_version": "1.2.0",
852
+ "_view_name": "LayoutView",
853
+ "align_content": null,
854
+ "align_items": null,
855
+ "align_self": null,
856
+ "border": null,
857
+ "bottom": null,
858
+ "display": null,
859
+ "flex": null,
860
+ "flex_flow": null,
861
+ "grid_area": null,
862
+ "grid_auto_columns": null,
863
+ "grid_auto_flow": null,
864
+ "grid_auto_rows": null,
865
+ "grid_column": null,
866
+ "grid_gap": null,
867
+ "grid_row": null,
868
+ "grid_template_areas": null,
869
+ "grid_template_columns": null,
870
+ "grid_template_rows": null,
871
+ "height": null,
872
+ "justify_content": null,
873
+ "justify_items": null,
874
+ "left": null,
875
+ "margin": null,
876
+ "max_height": null,
877
+ "max_width": null,
878
+ "min_height": null,
879
+ "min_width": null,
880
+ "object_fit": null,
881
+ "object_position": null,
882
+ "order": null,
883
+ "overflow": null,
884
+ "overflow_x": null,
885
+ "overflow_y": null,
886
+ "padding": null,
887
+ "right": null,
888
+ "top": null,
889
+ "visibility": null,
890
+ "width": null
891
+ }
892
+ },
893
+ "6019099f01704eae8511470f5dabafe9": {
894
+ "model_module": "@jupyter-widgets/controls",
895
+ "model_name": "DescriptionStyleModel",
896
+ "model_module_version": "1.5.0",
897
+ "state": {
898
+ "_model_module": "@jupyter-widgets/controls",
899
+ "_model_module_version": "1.5.0",
900
+ "_model_name": "DescriptionStyleModel",
901
+ "_view_count": null,
902
+ "_view_module": "@jupyter-widgets/base",
903
+ "_view_module_version": "1.2.0",
904
+ "_view_name": "StyleView",
905
+ "description_width": ""
906
+ }
907
+ },
908
+ "e71bc8b54aa74d9db035a0ffdef02ad2": {
909
+ "model_module": "@jupyter-widgets/base",
910
+ "model_name": "LayoutModel",
911
+ "model_module_version": "1.2.0",
912
+ "state": {
913
+ "_model_module": "@jupyter-widgets/base",
914
+ "_model_module_version": "1.2.0",
915
+ "_model_name": "LayoutModel",
916
+ "_view_count": null,
917
+ "_view_module": "@jupyter-widgets/base",
918
+ "_view_module_version": "1.2.0",
919
+ "_view_name": "LayoutView",
920
+ "align_content": null,
921
+ "align_items": null,
922
+ "align_self": null,
923
+ "border": null,
924
+ "bottom": null,
925
+ "display": null,
926
+ "flex": null,
927
+ "flex_flow": null,
928
+ "grid_area": null,
929
+ "grid_auto_columns": null,
930
+ "grid_auto_flow": null,
931
+ "grid_auto_rows": null,
932
+ "grid_column": null,
933
+ "grid_gap": null,
934
+ "grid_row": null,
935
+ "grid_template_areas": null,
936
+ "grid_template_columns": null,
937
+ "grid_template_rows": null,
938
+ "height": null,
939
+ "justify_content": null,
940
+ "justify_items": null,
941
+ "left": null,
942
+ "margin": null,
943
+ "max_height": null,
944
+ "max_width": null,
945
+ "min_height": null,
946
+ "min_width": null,
947
+ "object_fit": null,
948
+ "object_position": null,
949
+ "order": null,
950
+ "overflow": null,
951
+ "overflow_x": null,
952
+ "overflow_y": null,
953
+ "padding": null,
954
+ "right": null,
955
+ "top": null,
956
+ "visibility": null,
957
+ "width": null
958
+ }
959
+ },
960
+ "9476148a2b3549599340752404189f73": {
961
+ "model_module": "@jupyter-widgets/controls",
962
+ "model_name": "ProgressStyleModel",
963
+ "model_module_version": "1.5.0",
964
+ "state": {
965
+ "_model_module": "@jupyter-widgets/controls",
966
+ "_model_module_version": "1.5.0",
967
+ "_model_name": "ProgressStyleModel",
968
+ "_view_count": null,
969
+ "_view_module": "@jupyter-widgets/base",
970
+ "_view_module_version": "1.2.0",
971
+ "_view_name": "StyleView",
972
+ "bar_color": null,
973
+ "description_width": ""
974
+ }
975
+ },
976
+ "d39a0394fd99465c929ba6ae4114dcbf": {
977
+ "model_module": "@jupyter-widgets/base",
978
+ "model_name": "LayoutModel",
979
+ "model_module_version": "1.2.0",
980
+ "state": {
981
+ "_model_module": "@jupyter-widgets/base",
982
+ "_model_module_version": "1.2.0",
983
+ "_model_name": "LayoutModel",
984
+ "_view_count": null,
985
+ "_view_module": "@jupyter-widgets/base",
986
+ "_view_module_version": "1.2.0",
987
+ "_view_name": "LayoutView",
988
+ "align_content": null,
989
+ "align_items": null,
990
+ "align_self": null,
991
+ "border": null,
992
+ "bottom": null,
993
+ "display": null,
994
+ "flex": null,
995
+ "flex_flow": null,
996
+ "grid_area": null,
997
+ "grid_auto_columns": null,
998
+ "grid_auto_flow": null,
999
+ "grid_auto_rows": null,
1000
+ "grid_column": null,
1001
+ "grid_gap": null,
1002
+ "grid_row": null,
1003
+ "grid_template_areas": null,
1004
+ "grid_template_columns": null,
1005
+ "grid_template_rows": null,
1006
+ "height": null,
1007
+ "justify_content": null,
1008
+ "justify_items": null,
1009
+ "left": null,
1010
+ "margin": null,
1011
+ "max_height": null,
1012
+ "max_width": null,
1013
+ "min_height": null,
1014
+ "min_width": null,
1015
+ "object_fit": null,
1016
+ "object_position": null,
1017
+ "order": null,
1018
+ "overflow": null,
1019
+ "overflow_x": null,
1020
+ "overflow_y": null,
1021
+ "padding": null,
1022
+ "right": null,
1023
+ "top": null,
1024
+ "visibility": null,
1025
+ "width": null
1026
+ }
1027
+ },
1028
+ "b74b6520010740b98203f20bd4147ec7": {
1029
+ "model_module": "@jupyter-widgets/controls",
1030
+ "model_name": "DescriptionStyleModel",
1031
+ "model_module_version": "1.5.0",
1032
+ "state": {
1033
+ "_model_module": "@jupyter-widgets/controls",
1034
+ "_model_module_version": "1.5.0",
1035
+ "_model_name": "DescriptionStyleModel",
1036
+ "_view_count": null,
1037
+ "_view_module": "@jupyter-widgets/base",
1038
+ "_view_module_version": "1.2.0",
1039
+ "_view_name": "StyleView",
1040
+ "description_width": ""
1041
+ }
1042
+ }
1043
+ }
1044
+ }
1045
+ },
1046
+ "cells": [
1047
+ {
1048
+ "cell_type": "markdown",
1049
+ "source": [
1050
+ "## Install the modified `dom-tokenizers`"
1051
+ ],
1052
+ "metadata": {
1053
+ "id": "p4cA_Al2R8Fm"
1054
+ }
1055
+ },
1056
+ {
1057
+ "cell_type": "code",
1058
+ "execution_count": null,
1059
+ "metadata": {
1060
+ "colab": {
1061
+ "base_uri": "https://localhost:8080/"
1062
+ },
1063
+ "id": "AxuqwFstR6UD",
1064
+ "outputId": "ce2d7275-520d-44fe-a48f-e570a08cab35"
1065
+ },
1066
+ "outputs": [
1067
+ {
1068
+ "output_type": "stream",
1069
+ "name": "stdout",
1070
+ "text": [
1071
+ "Cloning into 'dom-tokenizers'...\n",
1072
+ "remote: Enumerating objects: 613, done.\u001b[K\n",
1073
+ "remote: Counting objects: 100% (187/187), done.\u001b[K\n",
1074
+ "remote: Compressing objects: 100% (80/80), done.\u001b[K\n",
1075
+ "remote: Total 613 (delta 118), reused 144 (delta 96), pack-reused 426\u001b[K\n",
1076
+ "Receiving objects: 100% (613/613), 153.44 KiB | 946.00 KiB/s, done.\n",
1077
+ "Resolving deltas: 100% (335/335), done.\n"
1078
+ ]
1079
+ }
1080
+ ],
1081
+ "source": [
1082
+ "!git clone https://github.com/gbenson/dom-tokenizers.git -b emit-unique-tokens-0.0.18-pre1 --single-branch"
1083
+ ]
1084
+ },
1085
+ {
1086
+ "cell_type": "code",
1087
+ "source": [
1088
+ "!cd dom-tokenizers && pip install -e .[train]"
1089
+ ],
1090
+ "metadata": {
1091
+ "colab": {
1092
+ "base_uri": "https://localhost:8080/"
1093
+ },
1094
+ "id": "iURZKR40UCxY",
1095
+ "outputId": "96304e65-e45c-40c4-cd22-c2f032da8200",
1096
+ "collapsed": true
1097
+ },
1098
+ "execution_count": null,
1099
+ "outputs": [
1100
+ {
1101
+ "output_type": "stream",
1102
+ "name": "stdout",
1103
+ "text": [
1104
+ "Obtaining file:///content/dom-tokenizers\n",
1105
+ " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
1106
+ " Checking if build backend supports build_editable ... \u001b[?25l\u001b[?25hdone\n",
1107
+ " Getting requirements to build editable ... \u001b[?25l\u001b[?25hdone\n",
1108
+ " Preparing editable metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
1109
+ "Collecting python-magic (from dom-tokenizers==0.0.18)\n",
1110
+ " Downloading python_magic-0.4.27-py2.py3-none-any.whl (13 kB)\n",
1111
+ "Requirement already satisfied: tokenizers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (0.19.1)\n",
1112
+ "Collecting unidecode (from dom-tokenizers==0.0.18)\n",
1113
+ " Downloading Unidecode-1.3.8-py3-none-any.whl (235 kB)\n",
1114
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m235.5/235.5 kB\u001b[0m \u001b[31m4.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1115
+ "\u001b[?25hCollecting vec64>0.0.2 (from dom-tokenizers==0.0.18)\n",
1116
+ " Downloading vec64-0.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13 kB)\n",
1117
+ "Collecting datasets (from dom-tokenizers==0.0.18)\n",
1118
+ " Downloading datasets-2.20.0-py3-none-any.whl (547 kB)\n",
1119
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m547.8/547.8 kB\u001b[0m \u001b[31m6.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1120
+ "\u001b[?25hRequirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (9.4.0)\n",
1121
+ "Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (4.41.2)\n",
1122
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (3.15.1)\n",
1123
+ "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (1.25.2)\n",
1124
+ "Collecting pyarrow>=15.0.0 (from datasets->dom-tokenizers==0.0.18)\n",
1125
+ " Downloading pyarrow-16.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (40.8 MB)\n",
1126
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m40.8/40.8 MB\u001b[0m \u001b[31m15.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1127
+ "\u001b[?25hRequirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (0.6)\n",
1128
+ "Collecting dill<0.3.9,>=0.3.0 (from datasets->dom-tokenizers==0.0.18)\n",
1129
+ " Downloading dill-0.3.8-py3-none-any.whl (116 kB)\n",
1130
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m116.3/116.3 kB\u001b[0m \u001b[31m10.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1131
+ "\u001b[?25hRequirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (2.0.3)\n",
1132
+ "Collecting requests>=2.32.2 (from datasets->dom-tokenizers==0.0.18)\n",
1133
+ " Downloading requests-2.32.3-py3-none-any.whl (64 kB)\n",
1134
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m64.9/64.9 kB\u001b[0m \u001b[31m6.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1135
+ "\u001b[?25hRequirement already satisfied: tqdm>=4.66.3 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (4.66.4)\n",
1136
+ "Collecting xxhash (from datasets->dom-tokenizers==0.0.18)\n",
1137
+ " Downloading xxhash-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194 kB)\n",
1138
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m194.1/194.1 kB\u001b[0m \u001b[31m19.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1139
+ "\u001b[?25hCollecting multiprocess (from datasets->dom-tokenizers==0.0.18)\n",
1140
+ " Downloading multiprocess-0.70.16-py310-none-any.whl (134 kB)\n",
1141
+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m11.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
1142
+ "\u001b[?25hRequirement already satisfied: fsspec[http]<=2024.5.0,>=2023.1.0 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (2023.6.0)\n",
1143
+ "Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (3.9.5)\n",
1144
+ "Requirement already satisfied: huggingface-hub>=0.21.2 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (0.23.4)\n",
1145
+ "Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (24.1)\n",
1146
+ "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (6.0.1)\n",
1147
+ "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers->dom-tokenizers==0.0.18) (2024.5.15)\n",
1148
+ "Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from transformers->dom-tokenizers==0.0.18) (0.4.3)\n",
1149
+ "Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (1.3.1)\n",
1150
+ "Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (23.2.0)\n",
1151
+ "Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (1.4.1)\n",
1152
+ "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (6.0.5)\n",
1153
+ "Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (1.9.4)\n",
1154
+ "Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets->dom-tokenizers==0.0.18) (4.0.3)\n",
1155
+ "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.21.2->datasets->dom-tokenizers==0.0.18) (4.12.2)\n",
1156
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.2->datasets->dom-tokenizers==0.0.18) (3.3.2)\n",
1157
+ "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.2->datasets->dom-tokenizers==0.0.18) (3.7)\n",
1158
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.2->datasets->dom-tokenizers==0.0.18) (2.0.7)\n",
1159
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.32.2->datasets->dom-tokenizers==0.0.18) (2024.6.2)\n",
1160
+ "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.18) (2.8.2)\n",
1161
+ "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.18) (2023.4)\n",
1162
+ "Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets->dom-tokenizers==0.0.18) (2024.1)\n",
1163
+ "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.2->pandas->datasets->dom-tokenizers==0.0.18) (1.16.0)\n",
1164
+ "Building wheels for collected packages: dom-tokenizers\n",
1165
+ " Building editable for dom-tokenizers (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
1166
+ " Created wheel for dom-tokenizers: filename=dom_tokenizers-0.0.18-0.editable-py3-none-any.whl size=7367 sha256=874e55c8a7d8ef3a1e23890fd293fb93357b316bbec0803c196872264e5c356c\n",
1167
+ " Stored in directory: /tmp/pip-ephem-wheel-cache-_kdcdqaq/wheels/ab/e4/d2/9b9419db21d26514602a3dbb7582a3c195f9229169192ca43b\n",
1168
+ "Successfully built dom-tokenizers\n",
1169
+ "Installing collected packages: xxhash, vec64, unidecode, requests, python-magic, pyarrow, dill, multiprocess, dom-tokenizers, datasets\n",
1170
+ " Attempting uninstall: requests\n",
1171
+ " Found existing installation: requests 2.31.0\n",
1172
+ " Uninstalling requests-2.31.0:\n",
1173
+ " Successfully uninstalled requests-2.31.0\n",
1174
+ " Attempting uninstall: pyarrow\n",
1175
+ " Found existing installation: pyarrow 14.0.2\n",
1176
+ " Uninstalling pyarrow-14.0.2:\n",
1177
+ " Successfully uninstalled pyarrow-14.0.2\n",
1178
+ "\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
1179
+ "cudf-cu12 24.4.1 requires pyarrow<15.0.0a0,>=14.0.1, but you have pyarrow 16.1.0 which is incompatible.\n",
1180
+ "google-colab 1.0.0 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.\n",
1181
+ "ibis-framework 8.0.0 requires pyarrow<16,>=2, but you have pyarrow 16.1.0 which is incompatible.\u001b[0m\u001b[31m\n",
1182
+ "\u001b[0mSuccessfully installed datasets-2.20.0 dill-0.3.8 dom-tokenizers-0.0.18 multiprocess-0.70.16 pyarrow-16.1.0 python-magic-0.4.27 requests-2.32.3 unidecode-1.3.8 vec64-0.0.3 xxhash-3.4.1\n"
1183
+ ]
1184
+ }
1185
+ ]
1186
+ },
1187
+ {
1188
+ "cell_type": "markdown",
1189
+ "source": [
1190
+ "## Train a tokenizer on `gbenson/webui-dom-snapshots`\n",
1191
+ "\n",
1192
+ "We don't need the tokenizer, but this `dom-tokenizers` is modified to output everything [`vec64`](https://pypi.org/project/vec64/) matched into a file as a side-effect."
1193
+ ],
1194
+ "metadata": {
1195
+ "id": "aXQW8CBmVOa4"
1196
+ }
1197
+ },
1198
+ {
1199
+ "cell_type": "code",
1200
+ "source": [
1201
+ "!train-tokenizer -n30000 -N4536 gbenson/webui-dom-snapshots"
1202
+ ],
1203
+ "metadata": {
1204
+ "colab": {
1205
+ "base_uri": "https://localhost:8080/"
1206
+ },
1207
+ "id": "CqHIS-8xVVKe",
1208
+ "outputId": "5ee13972-5f24-4af5-cb90-642267d66250"
1209
+ },
1210
+ "execution_count": 3,
1211
+ "outputs": [
1212
+ {
1213
+ "output_type": "stream",
1214
+ "name": "stdout",
1215
+ "text": [
1216
+ "Output directory: /content/dom-tokenizer-30k\n",
1217
+ "\n",
1218
+ "Downloading readme: 100% 9.16k/9.16k [00:00<00:00, 22.8MB/s]\n",
1219
+ "tokenizer_config.json: 100% 48.0/48.0 [00:00<00:00, 300kB/s]\n",
1220
+ "config.json: 100% 570/570 [00:00<00:00, 2.86MB/s]\n",
1221
+ "vocab.txt: 100% 232k/232k [00:00<00:00, 4.84MB/s]\n",
1222
+ "tokenizer.json: 100% 466k/466k [00:00<00:00, 2.32MB/s]\n",
1223
+ "Generating up to 30,000 tokens from 4,536 examples:\n",
1224
+ "\u001b[2K[00:00:01] Tokenize words ██████████████████ 845289 / 845289\n",
1225
+ "\u001b[2K[00:01:01] Count pairs ██████████████████ 845289 / 845289\n",
1226
+ "\u001b[2K[00:00:12] Compute merges ██████████████████ 23908 / 23908\n",
1227
+ "\n",
1228
+ "['training', 'complete']\n",
1229
+ "['token', '##izer', 'state', 'saved']\n",
1230
+ "['see', 'you', 'soon', '##!', '##!']\n"
1231
+ ]
1232
+ }
1233
+ ]
1234
+ },
1235
+ {
1236
+ "cell_type": "markdown",
1237
+ "source": [
1238
+ "## Merge the new tokens into the existing dataset"
1239
+ ],
1240
+ "metadata": {
1241
+ "id": "Uo_FraY1W5IK"
1242
+ }
1243
+ },
1244
+ {
1245
+ "cell_type": "code",
1246
+ "source": [
1247
+ "from datasets import load_dataset\n",
1248
+ "old_tokens = {row[\"text\"] for row in load_dataset(\"gbenson/webui-tokens-unlabelled\")[\"train\"]}\n",
1249
+ "print(len(old_tokens))"
1250
+ ],
1251
+ "metadata": {
1252
+ "id": "L_oxSzmFW-nL",
1253
+ "colab": {
1254
+ "base_uri": "https://localhost:8080/"
1255
+ },
1256
+ "outputId": "b5fb5717-f4a2-41b1-e3c9-5a3a0c1aa667"
1257
+ },
1258
+ "execution_count": 5,
1259
+ "outputs": [
1260
+ {
1261
+ "output_type": "stream",
1262
+ "name": "stdout",
1263
+ "text": [
1264
+ "1194369\n"
1265
+ ]
1266
+ }
1267
+ ]
1268
+ },
1269
+ {
1270
+ "cell_type": "code",
1271
+ "source": [
1272
+ "with open(\"unique-tokens\") as fp:\n",
1273
+ " new_tokens = {line.rstrip() for line in fp.readlines()}\n",
1274
+ "print(len(new_tokens))"
1275
+ ],
1276
+ "metadata": {
1277
+ "colab": {
1278
+ "base_uri": "https://localhost:8080/"
1279
+ },
1280
+ "id": "6PsGE3OvBAaJ",
1281
+ "outputId": "0eb60459-8bca-4dcf-ba66-4d69b4eabedd"
1282
+ },
1283
+ "execution_count": 8,
1284
+ "outputs": [
1285
+ {
1286
+ "output_type": "stream",
1287
+ "name": "stdout",
1288
+ "text": [
1289
+ "1446447\n"
1290
+ ]
1291
+ }
1292
+ ]
1293
+ },
1294
+ {
1295
+ "cell_type": "code",
1296
+ "source": [
1297
+ "new_tokens.update(old_tokens)\n",
1298
+ "print(len(new_tokens))"
1299
+ ],
1300
+ "metadata": {
1301
+ "colab": {
1302
+ "base_uri": "https://localhost:8080/"
1303
+ },
1304
+ "id": "jcr4ht1BBh9r",
1305
+ "outputId": "211021c9-c707-457a-dcf0-21f32272d1c3"
1306
+ },
1307
+ "execution_count": 11,
1308
+ "outputs": [
1309
+ {
1310
+ "output_type": "stream",
1311
+ "name": "stdout",
1312
+ "text": [
1313
+ "1616815\n"
1314
+ ]
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ "cell_type": "code",
1320
+ "source": [
1321
+ "from pandas import DataFrame\n",
1322
+ "df = DataFrame.from_dict({\"text\": list(new_tokens)})\n",
1323
+ "df.head()"
1324
+ ],
1325
+ "metadata": {
1326
+ "colab": {
1327
+ "base_uri": "https://localhost:8080/",
1328
+ "height": 206
1329
+ },
1330
+ "id": "HMwB6q-cCD-S",
1331
+ "outputId": "f9fcfcfc-3960-4b78-f903-f768b73567e0"
1332
+ },
1333
+ "execution_count": 19,
1334
+ "outputs": [
1335
+ {
1336
+ "output_type": "execute_result",
1337
+ "data": {
1338
+ "text/plain": [
1339
+ " text\n",
1340
+ "0 504869\n",
1341
+ "1 mE7Ke2EFHY29Tk2R8kYkFqDPDfonKFMrc0EeB1dYm6jHX8...\n",
1342
+ "2 com/books/congress\n",
1343
+ "3 uitgaande\n",
1344
+ "4 com/dYUR98DdSwGk6zBmsIBw"
1345
+ ],
1346
+ "text/html": [
1347
+ "\n",
1348
+ " <div id=\"df-ac6cea82-6612-4bb8-a5c7-bbbb54ea4bcc\" class=\"colab-df-container\">\n",
1349
+ " <div>\n",
1350
+ "<style scoped>\n",
1351
+ " .dataframe tbody tr th:only-of-type {\n",
1352
+ " vertical-align: middle;\n",
1353
+ " }\n",
1354
+ "\n",
1355
+ " .dataframe tbody tr th {\n",
1356
+ " vertical-align: top;\n",
1357
+ " }\n",
1358
+ "\n",
1359
+ " .dataframe thead th {\n",
1360
+ " text-align: right;\n",
1361
+ " }\n",
1362
+ "</style>\n",
1363
+ "<table border=\"1\" class=\"dataframe\">\n",
1364
+ " <thead>\n",
1365
+ " <tr style=\"text-align: right;\">\n",
1366
+ " <th></th>\n",
1367
+ " <th>text</th>\n",
1368
+ " </tr>\n",
1369
+ " </thead>\n",
1370
+ " <tbody>\n",
1371
+ " <tr>\n",
1372
+ " <th>0</th>\n",
1373
+ " <td>504869</td>\n",
1374
+ " </tr>\n",
1375
+ " <tr>\n",
1376
+ " <th>1</th>\n",
1377
+ " <td>mE7Ke2EFHY29Tk2R8kYkFqDPDfonKFMrc0EeB1dYm6jHX8...</td>\n",
1378
+ " </tr>\n",
1379
+ " <tr>\n",
1380
+ " <th>2</th>\n",
1381
+ " <td>com/books/congress</td>\n",
1382
+ " </tr>\n",
1383
+ " <tr>\n",
1384
+ " <th>3</th>\n",
1385
+ " <td>uitgaande</td>\n",
1386
+ " </tr>\n",
1387
+ " <tr>\n",
1388
+ " <th>4</th>\n",
1389
+ " <td>com/dYUR98DdSwGk6zBmsIBw</td>\n",
1390
+ " </tr>\n",
1391
+ " </tbody>\n",
1392
+ "</table>\n",
1393
+ "</div>\n",
1394
+ " <div class=\"colab-df-buttons\">\n",
1395
+ "\n",
1396
+ " <div class=\"colab-df-container\">\n",
1397
+ " <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-ac6cea82-6612-4bb8-a5c7-bbbb54ea4bcc')\"\n",
1398
+ " title=\"Convert this dataframe to an interactive table.\"\n",
1399
+ " style=\"display:none;\">\n",
1400
+ "\n",
1401
+ " <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
1402
+ " <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
1403
+ " </svg>\n",
1404
+ " </button>\n",
1405
+ "\n",
1406
+ " <style>\n",
1407
+ " .colab-df-container {\n",
1408
+ " display:flex;\n",
1409
+ " gap: 12px;\n",
1410
+ " }\n",
1411
+ "\n",
1412
+ " .colab-df-convert {\n",
1413
+ " background-color: #E8F0FE;\n",
1414
+ " border: none;\n",
1415
+ " border-radius: 50%;\n",
1416
+ " cursor: pointer;\n",
1417
+ " display: none;\n",
1418
+ " fill: #1967D2;\n",
1419
+ " height: 32px;\n",
1420
+ " padding: 0 0 0 0;\n",
1421
+ " width: 32px;\n",
1422
+ " }\n",
1423
+ "\n",
1424
+ " .colab-df-convert:hover {\n",
1425
+ " background-color: #E2EBFA;\n",
1426
+ " box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
1427
+ " fill: #174EA6;\n",
1428
+ " }\n",
1429
+ "\n",
1430
+ " .colab-df-buttons div {\n",
1431
+ " margin-bottom: 4px;\n",
1432
+ " }\n",
1433
+ "\n",
1434
+ " [theme=dark] .colab-df-convert {\n",
1435
+ " background-color: #3B4455;\n",
1436
+ " fill: #D2E3FC;\n",
1437
+ " }\n",
1438
+ "\n",
1439
+ " [theme=dark] .colab-df-convert:hover {\n",
1440
+ " background-color: #434B5C;\n",
1441
+ " box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
1442
+ " filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
1443
+ " fill: #FFFFFF;\n",
1444
+ " }\n",
1445
+ " </style>\n",
1446
+ "\n",
1447
+ " <script>\n",
1448
+ " const buttonEl =\n",
1449
+ " document.querySelector('#df-ac6cea82-6612-4bb8-a5c7-bbbb54ea4bcc button.colab-df-convert');\n",
1450
+ " buttonEl.style.display =\n",
1451
+ " google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
1452
+ "\n",
1453
+ " async function convertToInteractive(key) {\n",
1454
+ " const element = document.querySelector('#df-ac6cea82-6612-4bb8-a5c7-bbbb54ea4bcc');\n",
1455
+ " const dataTable =\n",
1456
+ " await google.colab.kernel.invokeFunction('convertToInteractive',\n",
1457
+ " [key], {});\n",
1458
+ " if (!dataTable) return;\n",
1459
+ "\n",
1460
+ " const docLinkHtml = 'Like what you see? Visit the ' +\n",
1461
+ " '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
1462
+ " + ' to learn more about interactive tables.';\n",
1463
+ " element.innerHTML = '';\n",
1464
+ " dataTable['output_type'] = 'display_data';\n",
1465
+ " await google.colab.output.renderOutput(dataTable, element);\n",
1466
+ " const docLink = document.createElement('div');\n",
1467
+ " docLink.innerHTML = docLinkHtml;\n",
1468
+ " element.appendChild(docLink);\n",
1469
+ " }\n",
1470
+ " </script>\n",
1471
+ " </div>\n",
1472
+ "\n",
1473
+ "\n",
1474
+ "<div id=\"df-27187ab1-ce78-41ea-9fe9-9cd2d069c3b3\">\n",
1475
+ " <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-27187ab1-ce78-41ea-9fe9-9cd2d069c3b3')\"\n",
1476
+ " title=\"Suggest charts\"\n",
1477
+ " style=\"display:none;\">\n",
1478
+ "\n",
1479
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
1480
+ " width=\"24px\">\n",
1481
+ " <g>\n",
1482
+ " <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
1483
+ " </g>\n",
1484
+ "</svg>\n",
1485
+ " </button>\n",
1486
+ "\n",
1487
+ "<style>\n",
1488
+ " .colab-df-quickchart {\n",
1489
+ " --bg-color: #E8F0FE;\n",
1490
+ " --fill-color: #1967D2;\n",
1491
+ " --hover-bg-color: #E2EBFA;\n",
1492
+ " --hover-fill-color: #174EA6;\n",
1493
+ " --disabled-fill-color: #AAA;\n",
1494
+ " --disabled-bg-color: #DDD;\n",
1495
+ " }\n",
1496
+ "\n",
1497
+ " [theme=dark] .colab-df-quickchart {\n",
1498
+ " --bg-color: #3B4455;\n",
1499
+ " --fill-color: #D2E3FC;\n",
1500
+ " --hover-bg-color: #434B5C;\n",
1501
+ " --hover-fill-color: #FFFFFF;\n",
1502
+ " --disabled-bg-color: #3B4455;\n",
1503
+ " --disabled-fill-color: #666;\n",
1504
+ " }\n",
1505
+ "\n",
1506
+ " .colab-df-quickchart {\n",
1507
+ " background-color: var(--bg-color);\n",
1508
+ " border: none;\n",
1509
+ " border-radius: 50%;\n",
1510
+ " cursor: pointer;\n",
1511
+ " display: none;\n",
1512
+ " fill: var(--fill-color);\n",
1513
+ " height: 32px;\n",
1514
+ " padding: 0;\n",
1515
+ " width: 32px;\n",
1516
+ " }\n",
1517
+ "\n",
1518
+ " .colab-df-quickchart:hover {\n",
1519
+ " background-color: var(--hover-bg-color);\n",
1520
+ " box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
1521
+ " fill: var(--button-hover-fill-color);\n",
1522
+ " }\n",
1523
+ "\n",
1524
+ " .colab-df-quickchart-complete:disabled,\n",
1525
+ " .colab-df-quickchart-complete:disabled:hover {\n",
1526
+ " background-color: var(--disabled-bg-color);\n",
1527
+ " fill: var(--disabled-fill-color);\n",
1528
+ " box-shadow: none;\n",
1529
+ " }\n",
1530
+ "\n",
1531
+ " .colab-df-spinner {\n",
1532
+ " border: 2px solid var(--fill-color);\n",
1533
+ " border-color: transparent;\n",
1534
+ " border-bottom-color: var(--fill-color);\n",
1535
+ " animation:\n",
1536
+ " spin 1s steps(1) infinite;\n",
1537
+ " }\n",
1538
+ "\n",
1539
+ " @keyframes spin {\n",
1540
+ " 0% {\n",
1541
+ " border-color: transparent;\n",
1542
+ " border-bottom-color: var(--fill-color);\n",
1543
+ " border-left-color: var(--fill-color);\n",
1544
+ " }\n",
1545
+ " 20% {\n",
1546
+ " border-color: transparent;\n",
1547
+ " border-left-color: var(--fill-color);\n",
1548
+ " border-top-color: var(--fill-color);\n",
1549
+ " }\n",
1550
+ " 30% {\n",
1551
+ " border-color: transparent;\n",
1552
+ " border-left-color: var(--fill-color);\n",
1553
+ " border-top-color: var(--fill-color);\n",
1554
+ " border-right-color: var(--fill-color);\n",
1555
+ " }\n",
1556
+ " 40% {\n",
1557
+ " border-color: transparent;\n",
1558
+ " border-right-color: var(--fill-color);\n",
1559
+ " border-top-color: var(--fill-color);\n",
1560
+ " }\n",
1561
+ " 60% {\n",
1562
+ " border-color: transparent;\n",
1563
+ " border-right-color: var(--fill-color);\n",
1564
+ " }\n",
1565
+ " 80% {\n",
1566
+ " border-color: transparent;\n",
1567
+ " border-right-color: var(--fill-color);\n",
1568
+ " border-bottom-color: var(--fill-color);\n",
1569
+ " }\n",
1570
+ " 90% {\n",
1571
+ " border-color: transparent;\n",
1572
+ " border-bottom-color: var(--fill-color);\n",
1573
+ " }\n",
1574
+ " }\n",
1575
+ "</style>\n",
1576
+ "\n",
1577
+ " <script>\n",
1578
+ " async function quickchart(key) {\n",
1579
+ " const quickchartButtonEl =\n",
1580
+ " document.querySelector('#' + key + ' button');\n",
1581
+ " quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
1582
+ " quickchartButtonEl.classList.add('colab-df-spinner');\n",
1583
+ " try {\n",
1584
+ " const charts = await google.colab.kernel.invokeFunction(\n",
1585
+ " 'suggestCharts', [key], {});\n",
1586
+ " } catch (error) {\n",
1587
+ " console.error('Error during call to suggestCharts:', error);\n",
1588
+ " }\n",
1589
+ " quickchartButtonEl.classList.remove('colab-df-spinner');\n",
1590
+ " quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
1591
+ " }\n",
1592
+ " (() => {\n",
1593
+ " let quickchartButtonEl =\n",
1594
+ " document.querySelector('#df-27187ab1-ce78-41ea-9fe9-9cd2d069c3b3 button');\n",
1595
+ " quickchartButtonEl.style.display =\n",
1596
+ " google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
1597
+ " })();\n",
1598
+ " </script>\n",
1599
+ "</div>\n",
1600
+ " </div>\n",
1601
+ " </div>\n"
1602
+ ],
1603
+ "application/vnd.google.colaboratory.intrinsic+json": {
1604
+ "type": "dataframe",
1605
+ "variable_name": "df"
1606
+ }
1607
+ },
1608
+ "metadata": {},
1609
+ "execution_count": 19
1610
+ }
1611
+ ]
1612
+ },
1613
+ {
1614
+ "cell_type": "code",
1615
+ "source": [
1616
+ "from datasets import Dataset\n",
1617
+ "dataset = Dataset.from_pandas(df)"
1618
+ ],
1619
+ "metadata": {
1620
+ "id": "juVr3_L5D3LC"
1621
+ },
1622
+ "execution_count": 24,
1623
+ "outputs": []
1624
+ },
1625
+ {
1626
+ "cell_type": "markdown",
1627
+ "source": [
1628
+ "## Upload to Hugging Face"
1629
+ ],
1630
+ "metadata": {
1631
+ "id": "sqbaaByQYG5q"
1632
+ }
1633
+ },
1634
+ {
1635
+ "cell_type": "code",
1636
+ "source": [
1637
+ "dataset.push_to_hub(\"gbenson/webui-tokens-unlabelled\")"
1638
+ ],
1639
+ "metadata": {
1640
+ "id": "ICObGLZvYHRZ",
1641
+ "colab": {
1642
+ "base_uri": "https://localhost:8080/",
1643
+ "height": 165,
1644
+ "referenced_widgets": [
1645
+ "4bbee348a78f44d39bb51049b5ee9646",
1646
+ "f92269931ef2478f80b1551be0d6ea35",
1647
+ "9b27366473f74c73a4d797b68d23f142",
1648
+ "a40e7372efb040d485c761bb1a5576e5",
1649
+ "19bfb2c7f2794b5bb1ee8187c0337b0b",
1650
+ "0eb726bddabe4210b322adba424c7934",
1651
+ "7353c573e9a24a369aabc37d2cf1919d",
1652
+ "928dc67f581d48c0890b4ab3f718fb2c",
1653
+ "ffc15229b57749a7a5e511428930381b",
1654
+ "6edb5421b3c34cccaca8c136067cb672",
1655
+ "f68961f1af6d4a17804188d871f858c6",
1656
+ "d572e70402f54b23a317ea821142a439",
1657
+ "6e7aecc23e6a461dbae8734563390f9c",
1658
+ "9ed714cfa6a84fa89200207d021badcf",
1659
+ "a361d4482c7142d9b4df7040c189453c",
1660
+ "f2e281d3067f412db6045bd422bb4b62",
1661
+ "1bec637aef4b4be0a4188644a11c609f",
1662
+ "03610c15ddb740ae8d479579d93e7cd9",
1663
+ "82190d849926401fa3ad90032ad13eef",
1664
+ "a4874c30cca440099ba7c7fcfd8a96a8",
1665
+ "f9a8585a28bc403e83a9869a1e79714e",
1666
+ "bd4f34da0244479bb703824bf6bd57c3",
1667
+ "f63cdc1af818446e9a0c34a47f48e33f",
1668
+ "7cbea630cd164a5ab9459c7e4240d642",
1669
+ "d9f7d90af2ac43989d0d9b1607282e1b",
1670
+ "834a37e5d9ac48e8825d0bbba0666301",
1671
+ "80fded30011d454abf986d120e8c997c",
1672
+ "b2276aee3b0b4177a437d1918f79dbe7",
1673
+ "6019099f01704eae8511470f5dabafe9",
1674
+ "e71bc8b54aa74d9db035a0ffdef02ad2",
1675
+ "9476148a2b3549599340752404189f73",
1676
+ "d39a0394fd99465c929ba6ae4114dcbf",
1677
+ "b74b6520010740b98203f20bd4147ec7"
1678
+ ]
1679
+ },
1680
+ "outputId": "72ab0158-bade-43e5-f01c-23d4498f7792"
1681
+ },
1682
+ "execution_count": 25,
1683
+ "outputs": [
1684
+ {
1685
+ "output_type": "display_data",
1686
+ "data": {
1687
+ "text/plain": [
1688
+ "Uploading the dataset shards: 0%| | 0/1 [00:00<?, ?it/s]"
1689
+ ],
1690
+ "application/vnd.jupyter.widget-view+json": {
1691
+ "version_major": 2,
1692
+ "version_minor": 0,
1693
+ "model_id": "4bbee348a78f44d39bb51049b5ee9646"
1694
+ }
1695
+ },
1696
+ "metadata": {}
1697
+ },
1698
+ {
1699
+ "output_type": "display_data",
1700
+ "data": {
1701
+ "text/plain": [
1702
+ "Creating parquet from Arrow format: 0%| | 0/1617 [00:00<?, ?ba/s]"
1703
+ ],
1704
+ "application/vnd.jupyter.widget-view+json": {
1705
+ "version_major": 2,
1706
+ "version_minor": 0,
1707
+ "model_id": "d572e70402f54b23a317ea821142a439"
1708
+ }
1709
+ },
1710
+ "metadata": {}
1711
+ },
1712
+ {
1713
+ "output_type": "display_data",
1714
+ "data": {
1715
+ "text/plain": [
1716
+ "README.md: 0%| | 0.00/1.18k [00:00<?, ?B/s]"
1717
+ ],
1718
+ "application/vnd.jupyter.widget-view+json": {
1719
+ "version_major": 2,
1720
+ "version_minor": 0,
1721
+ "model_id": "f63cdc1af818446e9a0c34a47f48e33f"
1722
+ }
1723
+ },
1724
+ "metadata": {}
1725
+ },
1726
+ {
1727
+ "output_type": "execute_result",
1728
+ "data": {
1729
+ "text/plain": [
1730
+ "CommitInfo(commit_url='https://huggingface.co/datasets/gbenson/webui-tokens-unlabelled/commit/c22d8f38aec9d30666a8b159b12c20255fb67362', commit_message='Upload dataset', commit_description='', oid='c22d8f38aec9d30666a8b159b12c20255fb67362', pr_url=None, pr_revision=None, pr_num=None)"
1731
+ ],
1732
+ "application/vnd.google.colaboratory.intrinsic+json": {
1733
+ "type": "string"
1734
+ }
1735
+ },
1736
+ "metadata": {},
1737
+ "execution_count": 25
1738
+ }
1739
+ ]
1740
+ },
1741
+ {
1742
+ "cell_type": "code",
1743
+ "source": [],
1744
+ "metadata": {
1745
+ "id": "U5p8o08kE2hC"
1746
+ },
1747
+ "execution_count": null,
1748
+ "outputs": []
1749
+ }
1750
+ ]
1751
+ }