docs(cookbook): install notebook 08 NER model

This commit is contained in:
taoche
2026-09-01 19:45:39 +08:00
parent 5c366c6b7e
commit 0dbe9274eb
@@ -83,7 +83,18 @@
"cell_type": "code",
"metadata": {},
"source": [
"!pip install semantica\n"
"%pip install semantica\n",
"\n",
"# spaCy models are distributed separately from the spaCy library. This lesson\n",
"# relies on the English model to recognize standalone places such as Cupertino.\n",
"import sys\n",
"import subprocess\n",
"import spacy\n",
"\n",
"try:\n",
" spacy.load(\"en_core_web_sm\")\n",
"except OSError:\n",
" subprocess.check_call([sys.executable, \"-m\", \"spacy\", \"download\", \"en_core_web_sm\"])\n"
],
"execution_count": null,
"outputs": []