{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "eba2ee81", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "No config specified, defaulting to: wikinews/raw\n", "Reusing dataset wikinews (/Users/boudin-f/.cache/huggingface/datasets/taln-ls2n___wikinews/raw/1.0.0/aa15bd435a75a532fac6070fe8169812db6efd9d00c6fbac93992165536d8183)\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "51588bf1a2714239b22d99eeac8f0db7", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/1 [00:00=/](?=[{a}])\".format(a=ALPHA),\n", " ]\n", ")\n", "\n", "infix_re = compile_infix_regex(infixes)\n", "nlp.tokenizer.infix_finditer = infix_re.finditer" ] }, { "cell_type": "code", "execution_count": 4, "id": "047ab1cc", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "7d2dc99496ef4579b3b027ca651ed359", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/399 [00:00