Skip to content

Commit e228635

Browse files
authored
[Ch3Nb02] Installed dependencies using ch3-requirements.txt
1 parent 48cf4ca commit e228635

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

Ch3/02_Bag_of_Words.ipynb

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,57 @@
1515
{
1616
"cell_type": "code",
1717
"execution_count": 1,
18+
"metadata": {},
19+
"outputs": [
20+
{
21+
"name": "stdout",
22+
"output_type": "stream",
23+
"text": [
24+
"Collecting scikit-learn==0.21.3\n",
25+
" Using cached scikit_learn-0.21.3-cp36-cp36m-win_amd64.whl (5.9 MB)\n",
26+
"Collecting scipy>=0.17.0\n",
27+
" Using cached scipy-1.5.4-cp36-cp36m-win_amd64.whl (31.2 MB)\n",
28+
"Collecting joblib>=0.11\n",
29+
" Using cached joblib-1.0.1-py3-none-any.whl (303 kB)\n",
30+
"Collecting numpy>=1.11.0\n",
31+
" Using cached numpy-1.19.5-cp36-cp36m-win_amd64.whl (13.2 MB)\n",
32+
"Installing collected packages: numpy, scipy, joblib, scikit-learn\n",
33+
"Successfully installed joblib-1.0.1 numpy-1.19.5 scikit-learn-0.21.3 scipy-1.5.4\n"
34+
]
35+
}
36+
],
37+
"source": [
38+
"# To install only the requirements of this notebook, uncomment the lines below and run this cell\n",
39+
"\n",
40+
"# ===========================\n",
41+
"\n",
42+
"!pip install scikit-learn==0.21.3\n",
43+
"\n",
44+
"# ==========================="
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": 2,
50+
"metadata": {},
51+
"outputs": [],
52+
"source": [
53+
"# To install the requirements for the entire chapter, uncomment the lines below and run this cell\n",
54+
"\n",
55+
"# ===========================\n",
56+
"\n",
57+
"# try :\n",
58+
"# import google.colab\n",
59+
"# !curl https://raw.githubusercontent.com/practical-nlp/practical-nlp/master/Ch3/ch3-requirements.txt | xargs -n 1 -L 1 pip install\n",
60+
"# except ModuleNotFoundError :\n",
61+
"# !pip install -r \"ch3-requirements.txt\"\n",
62+
"\n",
63+
"# ==========================="
64+
]
65+
},
66+
{
67+
"cell_type": "code",
68+
"execution_count": 3,
1869
"metadata": {
1970
"colab": {
2071
"base_uri": "https://localhost:8080/",
@@ -31,7 +82,7 @@
3182
"['dog bites man', 'man bites dog', 'dog eats meat', 'man eats food']"
3283
]
3384
},
34-
"execution_count": 1,
85+
"execution_count": 3,
3586
"metadata": {},
3687
"output_type": "execute_result"
3788
}
@@ -54,7 +105,7 @@
54105
},
55106
{
56107
"cell_type": "code",
57-
"execution_count": 2,
108+
"execution_count": 4,
58109
"metadata": {
59110
"colab": {
60111
"base_uri": "https://localhost:8080/",
@@ -109,7 +160,7 @@
109160
},
110161
{
111162
"cell_type": "code",
112-
"execution_count": 3,
163+
"execution_count": 5,
113164
"metadata": {
114165
"colab": {
115166
"base_uri": "https://localhost:8080/",
@@ -164,7 +215,7 @@
164215
"name": "python",
165216
"nbconvert_exporter": "python",
166217
"pygments_lexer": "ipython3",
167-
"version": "3.6.7"
218+
"version": "3.6.13"
168219
}
169220
},
170221
"nbformat": 4,

0 commit comments

Comments
 (0)