Improvements to explanations and minor edits
This commit is contained in:
@@ -52,6 +52,20 @@
|
||||
"from sklearn.preprocessing import StandardScaler"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b3c87c11-8dbe-4b8c-8989-01e3d3a60026",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## NLP imports\n",
|
||||
"\n",
|
||||
"In the next cell, we have more imports for our NLP related machine learning. \n",
|
||||
"If the gensim import gives you an error like \"Cannot import name 'triu' from 'scipy.linalg' then please run in another cell: \n",
|
||||
"`!pip install \"scipy<1.13\"` \n",
|
||||
"As described on StackOverflow [here](https://stackoverflow.com/questions/78279136/importerror-cannot-import-name-triu-from-scipy-linalg-when-importing-gens). \n",
|
||||
"Many thanks to students Arnaldo G and Ard V for sorting this."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
@@ -59,7 +73,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# And more imports for our NLP related machine learning\n",
|
||||
"# NLP related imports\n",
|
||||
"\n",
|
||||
"from sklearn.feature_extraction.text import CountVectorizer\n",
|
||||
"from gensim.models import Word2Vec\n",
|
||||
|
||||
Reference in New Issue
Block a user