Skip to content

Commit e84b20f

Browse files
committed
[NLP][Ch08Nb02] Update Notebook 2 with windows compatibility
1 parent fc4b25b commit e84b20f

File tree

1 file changed

+32
-19
lines changed

1 file changed

+32
-19
lines changed

Ch8/02_DifferentTokenizers.ipynb

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 0,
5+
"execution_count": 1,
66
"metadata": {
77
"colab": {
88
"base_uri": "https://localhost:8080/",
@@ -19,23 +19,36 @@
1919
"text": [
2020
"Collecting twikenizer\n",
2121
" Downloading https://files.pythonhosted.org/packages/d2/51/7aee33630b948f0716efae7a96c4fd8f859b348694058c380fd899a4227e/twikenizer-1.0.tar.gz\n",
22-
"Building wheels for collected packages: twikenizer\n",
23-
" Building wheel for twikenizer (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
24-
" Created wheel for twikenizer: filename=twikenizer-1.0-cp36-none-any.whl size=4853 sha256=69c74c1ea248414aa18ccbf0d8f0b704cb204a0af7fd1a75d3821a783b301b83\n",
25-
" Stored in directory: /root/.cache/pip/wheels/34/5d/df/2bf827d7e3c6bda2b2dcdd978f975afd43ef400784c9507675\n",
26-
"Successfully built twikenizer\n",
2722
"Installing collected packages: twikenizer\n",
28-
"Successfully installed twikenizer-1.0\n",
23+
" Running setup.py install for twikenizer: started\n",
24+
" Running setup.py install for twikenizer: finished with status 'done'\n",
25+
"Successfully installed twikenizer-1.0\n"
26+
]
27+
},
28+
{
29+
"name": "stderr",
30+
"output_type": "stream",
31+
"text": [
32+
"You are using pip version 19.0.3, however version 21.1.2 is available.\n",
33+
"You should consider upgrading via the 'python -m pip install --upgrade pip' command.\n"
34+
]
35+
},
36+
{
37+
"name": "stdout",
38+
"output_type": "stream",
39+
"text": [
2940
"Collecting emoji\n",
30-
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/40/8d/521be7f0091fe0f2ae690cc044faf43e3445e0ff33c574eae752dd7e39fa/emoji-0.5.4.tar.gz (43kB)\n",
31-
"\u001b[K |████████████████████████████████| 51kB 1.7MB/s \n",
32-
"\u001b[?25hBuilding wheels for collected packages: emoji\n",
33-
" Building wheel for emoji (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
34-
" Created wheel for emoji: filename=emoji-0.5.4-cp36-none-any.whl size=42176 sha256=13fd92618dda624b5bf58512c35020d306717a1ffbb07b067cea5ef79ca2ba2e\n",
35-
" Stored in directory: /root/.cache/pip/wheels/2a/a9/0a/4f8e8cce8074232aba240caca3fade315bb49fac68808d1a9c\n",
36-
"Successfully built emoji\n",
41+
" Downloading https://files.pythonhosted.org/packages/24/fa/b3368f41b95a286f8d300e323449ab4e86b85334c2e0b477e94422b8ed0f/emoji-1.2.0-py3-none-any.whl (131kB)\n",
3742
"Installing collected packages: emoji\n",
38-
"Successfully installed emoji-0.5.4\n"
43+
"Successfully installed emoji-1.2.0\n"
44+
]
45+
},
46+
{
47+
"name": "stderr",
48+
"output_type": "stream",
49+
"text": [
50+
"You are using pip version 19.0.3, however version 21.1.2 is available.\n",
51+
"You should consider upgrading via the 'python -m pip install --upgrade pip' command.\n"
3952
]
4053
}
4154
],
@@ -46,7 +59,7 @@
4659
},
4760
{
4861
"cell_type": "code",
49-
"execution_count": 0,
62+
"execution_count": 2,
5063
"metadata": {
5164
"colab": {},
5265
"colab_type": "code",
@@ -59,7 +72,7 @@
5972
},
6073
{
6174
"cell_type": "code",
62-
"execution_count": 0,
75+
"execution_count": 3,
6376
"metadata": {
6477
"colab": {
6578
"base_uri": "https://localhost:8080/",
@@ -86,7 +99,7 @@
8699
},
87100
{
88101
"cell_type": "code",
89-
"execution_count": 0,
102+
"execution_count": 5,
90103
"metadata": {
91104
"colab": {
92105
"base_uri": "https://localhost:8080/",
@@ -132,7 +145,7 @@
132145
"name": "python",
133146
"nbconvert_exporter": "python",
134147
"pygments_lexer": "ipython3",
135-
"version": "3.6.10"
148+
"version": "3.7.4"
136149
}
137150
},
138151
"nbformat": 4,

0 commit comments

Comments
 (0)