{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "4bbee348a78f44d39bb51049b5ee9646": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_f92269931ef2478f80b1551be0d6ea35", "IPY_MODEL_9b27366473f74c73a4d797b68d23f142", "IPY_MODEL_a40e7372efb040d485c761bb1a5576e5" ], "layout": "IPY_MODEL_19bfb2c7f2794b5bb1ee8187c0337b0b" } }, "f92269931ef2478f80b1551be0d6ea35": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_0eb726bddabe4210b322adba424c7934", "placeholder": "​", "style": "IPY_MODEL_7353c573e9a24a369aabc37d2cf1919d", "value": "Uploading the dataset shards: 100%" } }, "9b27366473f74c73a4d797b68d23f142": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_928dc67f581d48c0890b4ab3f718fb2c", "max": 1, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_ffc15229b57749a7a5e511428930381b", "value": 1 } }, "a40e7372efb040d485c761bb1a5576e5": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_6edb5421b3c34cccaca8c136067cb672", "placeholder": "​", "style": "IPY_MODEL_f68961f1af6d4a17804188d871f858c6", "value": " 1/1 [00:09<00:00,  9.72s/it]" } }, "19bfb2c7f2794b5bb1ee8187c0337b0b": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "0eb726bddabe4210b322adba424c7934": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "7353c573e9a24a369aabc37d2cf1919d": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "928dc67f581d48c0890b4ab3f718fb2c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "ffc15229b57749a7a5e511428930381b": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "" } }, "6edb5421b3c34cccaca8c136067cb672": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "f68961f1af6d4a17804188d871f858c6": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "d572e70402f54b23a317ea821142a439": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_6e7aecc23e6a461dbae8734563390f9c", "IPY_MODEL_9ed714cfa6a84fa89200207d021badcf", "IPY_MODEL_a361d4482c7142d9b4df7040c189453c" ], "layout": "IPY_MODEL_f2e281d3067f412db6045bd422bb4b62" } }, "6e7aecc23e6a461dbae8734563390f9c": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_1bec637aef4b4be0a4188644a11c609f", "placeholder": "​", "style": "IPY_MODEL_03610c15ddb740ae8d479579d93e7cd9", "value": "Creating parquet from Arrow format: 100%" } }, "9ed714cfa6a84fa89200207d021badcf": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_82190d849926401fa3ad90032ad13eef", "max": 1617, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_a4874c30cca440099ba7c7fcfd8a96a8", "value": 1617 } }, "a361d4482c7142d9b4df7040c189453c": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_f9a8585a28bc403e83a9869a1e79714e", "placeholder": "​", "style": "IPY_MODEL_bd4f34da0244479bb703824bf6bd57c3", "value": " 1617/1617 [00:00<00:00, 2593.85ba/s]" } }, "f2e281d3067f412db6045bd422bb4b62": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "1bec637aef4b4be0a4188644a11c609f": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "03610c15ddb740ae8d479579d93e7cd9": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "82190d849926401fa3ad90032ad13eef": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "a4874c30cca440099ba7c7fcfd8a96a8": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "" } }, "f9a8585a28bc403e83a9869a1e79714e": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "bd4f34da0244479bb703824bf6bd57c3": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "f63cdc1af818446e9a0c34a47f48e33f": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_7cbea630cd164a5ab9459c7e4240d642", "IPY_MODEL_d9f7d90af2ac43989d0d9b1607282e1b", "IPY_MODEL_834a37e5d9ac48e8825d0bbba0666301" ], "layout": "IPY_MODEL_80fded30011d454abf986d120e8c997c" } }, "7cbea630cd164a5ab9459c7e4240d642": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_b2276aee3b0b4177a437d1918f79dbe7", "placeholder": "​", "style": "IPY_MODEL_6019099f01704eae8511470f5dabafe9", "value": "README.md: 100%" } }, "d9f7d90af2ac43989d0d9b1607282e1b": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_e71bc8b54aa74d9db035a0ffdef02ad2", "max": 1177, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_9476148a2b3549599340752404189f73", "value": 1177 } }, "834a37e5d9ac48e8825d0bbba0666301": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_d39a0394fd99465c929ba6ae4114dcbf", "placeholder": "​", "style": "IPY_MODEL_b74b6520010740b98203f20bd4147ec7", "value": " 1.18k/1.18k [00:00<00:00, 82.0kB/s]" } }, "80fded30011d454abf986d120e8c997c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "b2276aee3b0b4177a437d1918f79dbe7": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "6019099f01704eae8511470f5dabafe9": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "e71bc8b54aa74d9db035a0ffdef02ad2": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9476148a2b3549599340752404189f73": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "" } }, "d39a0394fd99465c929ba6ae4114dcbf": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "b74b6520010740b98203f20bd4147ec7": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } } } } }, "cells": [ { "cell_type": "markdown", "source": [ "## Install the modified `dom-tokenizers`" ], "metadata": { "id": "p4cA_Al2R8Fm" } }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "AxuqwFstR6UD", "outputId": "ce2d7275-520d-44fe-a48f-e570a08cab35" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Cloning into 'dom-tokenizers'...\n", "remote: Enumerating objects: 613, done.\u001b[K\n", "remote: Counting objects: 100% (187/187), done.\u001b[K\n", "remote: Compressing objects: 100% (80/80), done.\u001b[K\n", "remote: Total 613 (delta 118), reused 144 (delta 96), pack-reused 426\u001b[K\n", "Receiving objects: 100% (613/613), 153.44 KiB | 946.00 KiB/s, done.\n", "Resolving deltas: 100% (335/335), done.\n" ] } ], "source": [ "!git clone https://github.com/gbenson/dom-tokenizers.git -b emit-unique-tokens-0.0.18-pre1 --single-branch" ] }, { "cell_type": "code", "source": [ "!cd dom-tokenizers && pip install -e .[train]" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "iURZKR40UCxY", "outputId": "96304e65-e45c-40c4-cd22-c2f032da8200", "collapsed": true }, "execution_count": null, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Obtaining file:///content/dom-tokenizers\n", " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n", " Checking if build backend supports build_editable ... \u001b[?25l\u001b[?25hdone\n", " Getting requirements to build editable ... \u001b[?25l\u001b[?25hdone\n", " Preparing editable metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", "Collecting python-magic (from dom-tokenizers==0.0.18)\n", " Downloading python_magic-0.4.27-py2.py3-none-any.whl (13 kB)\n", "Requirement already satisfied: tokenizers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (0.19.1)\n", "Collecting unidecode (from dom-tokenizers==0.0.18)\n", " Downloading Unidecode-1.3.8-py3-none-any.whl (235 kB)\n", "\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", "\u001b[?25hCollecting vec64>0.0.2 (from dom-tokenizers==0.0.18)\n", " 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", "Collecting datasets (from dom-tokenizers==0.0.18)\n", " Downloading datasets-2.20.0-py3-none-any.whl (547 kB)\n", "\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", "\u001b[?25hRequirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (9.4.0)\n", "Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (from dom-tokenizers==0.0.18) (4.41.2)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (3.15.1)\n", "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", "Collecting pyarrow>=15.0.0 (from datasets->dom-tokenizers==0.0.18)\n", " Downloading pyarrow-16.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (40.8 MB)\n", "\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", "\u001b[?25hRequirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (0.6)\n", "Collecting dill<0.3.9,>=0.3.0 (from datasets->dom-tokenizers==0.0.18)\n", " Downloading dill-0.3.8-py3-none-any.whl (116 kB)\n", "\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", "\u001b[?25hRequirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (2.0.3)\n", "Collecting requests>=2.32.2 (from datasets->dom-tokenizers==0.0.18)\n", " Downloading requests-2.32.3-py3-none-any.whl (64 kB)\n", "\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", "\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", "Collecting xxhash (from datasets->dom-tokenizers==0.0.18)\n", " Downloading xxhash-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194 kB)\n", "\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", "\u001b[?25hCollecting multiprocess (from datasets->dom-tokenizers==0.0.18)\n", " Downloading multiprocess-0.70.16-py310-none-any.whl (134 kB)\n", "\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", "\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", "Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (3.9.5)\n", "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", "Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets->dom-tokenizers==0.0.18) (24.1)\n", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "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", "Building wheels for collected packages: dom-tokenizers\n", " Building editable for dom-tokenizers (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", " Created wheel for dom-tokenizers: filename=dom_tokenizers-0.0.18-0.editable-py3-none-any.whl size=7367 sha256=874e55c8a7d8ef3a1e23890fd293fb93357b316bbec0803c196872264e5c356c\n", " Stored in directory: /tmp/pip-ephem-wheel-cache-_kdcdqaq/wheels/ab/e4/d2/9b9419db21d26514602a3dbb7582a3c195f9229169192ca43b\n", "Successfully built dom-tokenizers\n", "Installing collected packages: xxhash, vec64, unidecode, requests, python-magic, pyarrow, dill, multiprocess, dom-tokenizers, datasets\n", " Attempting uninstall: requests\n", " Found existing installation: requests 2.31.0\n", " Uninstalling requests-2.31.0:\n", " Successfully uninstalled requests-2.31.0\n", " Attempting uninstall: pyarrow\n", " Found existing installation: pyarrow 14.0.2\n", " Uninstalling pyarrow-14.0.2:\n", " Successfully uninstalled pyarrow-14.0.2\n", "\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", "cudf-cu12 24.4.1 requires pyarrow<15.0.0a0,>=14.0.1, but you have pyarrow 16.1.0 which is incompatible.\n", "google-colab 1.0.0 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.\n", "ibis-framework 8.0.0 requires pyarrow<16,>=2, but you have pyarrow 16.1.0 which is incompatible.\u001b[0m\u001b[31m\n", "\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" ] } ] }, { "cell_type": "markdown", "source": [ "## Train a tokenizer on `gbenson/webui-dom-snapshots`\n", "\n", "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." ], "metadata": { "id": "aXQW8CBmVOa4" } }, { "cell_type": "code", "source": [ "!train-tokenizer -n30000 -N4536 gbenson/webui-dom-snapshots" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "CqHIS-8xVVKe", "outputId": "5ee13972-5f24-4af5-cb90-642267d66250" }, "execution_count": 3, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Output directory: /content/dom-tokenizer-30k\n", "\n", "Downloading readme: 100% 9.16k/9.16k [00:00<00:00, 22.8MB/s]\n", "tokenizer_config.json: 100% 48.0/48.0 [00:00<00:00, 300kB/s]\n", "config.json: 100% 570/570 [00:00<00:00, 2.86MB/s]\n", "vocab.txt: 100% 232k/232k [00:00<00:00, 4.84MB/s]\n", "tokenizer.json: 100% 466k/466k [00:00<00:00, 2.32MB/s]\n", "Generating up to 30,000 tokens from 4,536 examples:\n", "\u001b[2K[00:00:01] Tokenize words ██████████████████ 845289 / 845289\n", "\u001b[2K[00:01:01] Count pairs ██████████████████ 845289 / 845289\n", "\u001b[2K[00:00:12] Compute merges ██████████████████ 23908 / 23908\n", "\n", "['training', 'complete']\n", "['token', '##izer', 'state', 'saved']\n", "['see', 'you', 'soon', '##!', '##!']\n" ] } ] }, { "cell_type": "markdown", "source": [ "## Merge the new tokens into the existing dataset" ], "metadata": { "id": "Uo_FraY1W5IK" } }, { "cell_type": "code", "source": [ "from datasets import load_dataset\n", "old_tokens = {row[\"text\"] for row in load_dataset(\"gbenson/webui-tokens-unlabelled\")[\"train\"]}\n", "print(len(old_tokens))" ], "metadata": { "id": "L_oxSzmFW-nL", "colab": { "base_uri": "https://localhost:8080/" }, "outputId": "b5fb5717-f4a2-41b1-e3c9-5a3a0c1aa667" }, "execution_count": 5, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "1194369\n" ] } ] }, { "cell_type": "code", "source": [ "with open(\"unique-tokens\") as fp:\n", " new_tokens = {line.rstrip() for line in fp.readlines()}\n", "print(len(new_tokens))" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "6PsGE3OvBAaJ", "outputId": "0eb60459-8bca-4dcf-ba66-4d69b4eabedd" }, "execution_count": 8, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "1446447\n" ] } ] }, { "cell_type": "code", "source": [ "new_tokens.update(old_tokens)\n", "print(len(new_tokens))" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "jcr4ht1BBh9r", "outputId": "211021c9-c707-457a-dcf0-21f32272d1c3" }, "execution_count": 11, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "1616815\n" ] } ] }, { "cell_type": "code", "source": [ "from pandas import DataFrame\n", "df = DataFrame.from_dict({\"text\": list(new_tokens)})\n", "df.head()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 206 }, "id": "HMwB6q-cCD-S", "outputId": "f9fcfcfc-3960-4b78-f903-f768b73567e0" }, "execution_count": 19, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " text\n", "0 504869\n", "1 mE7Ke2EFHY29Tk2R8kYkFqDPDfonKFMrc0EeB1dYm6jHX8...\n", "2 com/books/congress\n", "3 uitgaande\n", "4 com/dYUR98DdSwGk6zBmsIBw" ], "text/html": [ "\n", "
\n", "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
text
0504869
1mE7Ke2EFHY29Tk2R8kYkFqDPDfonKFMrc0EeB1dYm6jHX8...
2com/books/congress
3uitgaande
4com/dYUR98DdSwGk6zBmsIBw
\n", "
\n", "
\n", "\n", "
\n", " \n", "\n", " \n", "\n", " \n", "
\n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", " \n", "
\n", "
\n", "
\n" ], "application/vnd.google.colaboratory.intrinsic+json": { "type": "dataframe", "variable_name": "df" } }, "metadata": {}, "execution_count": 19 } ] }, { "cell_type": "code", "source": [ "from datasets import Dataset\n", "dataset = Dataset.from_pandas(df)" ], "metadata": { "id": "juVr3_L5D3LC" }, "execution_count": 24, "outputs": [] }, { "cell_type": "markdown", "source": [ "## Upload to Hugging Face" ], "metadata": { "id": "sqbaaByQYG5q" } }, { "cell_type": "code", "source": [ "dataset.push_to_hub(\"gbenson/webui-tokens-unlabelled\")" ], "metadata": { "id": "ICObGLZvYHRZ", "colab": { "base_uri": "https://localhost:8080/", "height": 165, "referenced_widgets": [ "4bbee348a78f44d39bb51049b5ee9646", "f92269931ef2478f80b1551be0d6ea35", "9b27366473f74c73a4d797b68d23f142", "a40e7372efb040d485c761bb1a5576e5", "19bfb2c7f2794b5bb1ee8187c0337b0b", "0eb726bddabe4210b322adba424c7934", "7353c573e9a24a369aabc37d2cf1919d", "928dc67f581d48c0890b4ab3f718fb2c", "ffc15229b57749a7a5e511428930381b", "6edb5421b3c34cccaca8c136067cb672", "f68961f1af6d4a17804188d871f858c6", "d572e70402f54b23a317ea821142a439", "6e7aecc23e6a461dbae8734563390f9c", "9ed714cfa6a84fa89200207d021badcf", "a361d4482c7142d9b4df7040c189453c", "f2e281d3067f412db6045bd422bb4b62", "1bec637aef4b4be0a4188644a11c609f", "03610c15ddb740ae8d479579d93e7cd9", "82190d849926401fa3ad90032ad13eef", "a4874c30cca440099ba7c7fcfd8a96a8", "f9a8585a28bc403e83a9869a1e79714e", "bd4f34da0244479bb703824bf6bd57c3", "f63cdc1af818446e9a0c34a47f48e33f", "7cbea630cd164a5ab9459c7e4240d642", "d9f7d90af2ac43989d0d9b1607282e1b", "834a37e5d9ac48e8825d0bbba0666301", "80fded30011d454abf986d120e8c997c", "b2276aee3b0b4177a437d1918f79dbe7", "6019099f01704eae8511470f5dabafe9", "e71bc8b54aa74d9db035a0ffdef02ad2", "9476148a2b3549599340752404189f73", "d39a0394fd99465c929ba6ae4114dcbf", "b74b6520010740b98203f20bd4147ec7" ] }, "outputId": "72ab0158-bade-43e5-f01c-23d4498f7792" }, "execution_count": 25, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "Uploading the dataset shards: 0%| | 0/1 [00:00