Skip to content

Commit 32c41ab

Browse files
authored
[Ch3Nb04] Installed dependencies using ch3-requirements.txt
1 parent ef02ccb commit 32c41ab

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

Ch3/04_TF_IDF.ipynb

+48-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,51 @@
1717
{
1818
"cell_type": "code",
1919
"execution_count": 1,
20+
"metadata": {},
21+
"outputs": [
22+
{
23+
"name": "stdout",
24+
"output_type": "stream",
25+
"text": [
26+
"Requirement already satisfied: scikit-learn==0.21.3 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (0.21.3)\n",
27+
"Requirement already satisfied: numpy>=1.11.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.19.5)\n",
28+
"Requirement already satisfied: scipy>=0.17.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.5.4)\n",
29+
"Requirement already satisfied: joblib>=0.11 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.0.1)\n"
30+
]
31+
}
32+
],
33+
"source": [
34+
"# To install only the requirements of this notebook, uncomment the lines below and run this cell\n",
35+
"\n",
36+
"# ===========================\n",
37+
"\n",
38+
"!pip install scikit-learn==0.21.3\n",
39+
"\n",
40+
"# ==========================="
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 2,
46+
"metadata": {},
47+
"outputs": [],
48+
"source": [
49+
"# To install the requirements for the entire chapter, uncomment the lines below and run this cell\n",
50+
"\n",
51+
"# ===========================\n",
52+
"\n",
53+
"# try :\n",
54+
"# import google.colab\n",
55+
"# !curl https://raw.githubusercontent.com/practical-nlp/practical-nlp/master/Ch3/ch3-requirements.txt | xargs -n 1 -L 1 pip install\n",
56+
"# except ModuleNotFoundError :\n",
57+
"# !pip install -r \"ch3-requirements.txt\"\n",
58+
"\n",
59+
"# ==========================="
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": 3,
2065
"metadata": {
2166
"colab": {
2267
"base_uri": "https://localhost:8080/",
@@ -33,7 +78,7 @@
3378
"['dog bites man', 'man bites dog', 'dog eats meat', 'man eats food']"
3479
]
3580
},
36-
"execution_count": 1,
81+
"execution_count": 3,
3782
"metadata": {},
3883
"output_type": "execute_result"
3984
}
@@ -46,7 +91,7 @@
4691
},
4792
{
4893
"cell_type": "code",
49-
"execution_count": 2,
94+
"execution_count": 4,
5095
"metadata": {
5196
"colab": {
5297
"base_uri": "https://localhost:8080/",
@@ -126,7 +171,7 @@
126171
"name": "python",
127172
"nbconvert_exporter": "python",
128173
"pygments_lexer": "ipython3",
129-
"version": "3.6.7"
174+
"version": "3.6.13"
130175
}
131176
},
132177
"nbformat": 4,

0 commit comments

Comments
 (0)