Commit 899b092f authored by Decoupes Remy's avatar Decoupes Remy
Browse files

install spacy model in the virtual env Collecting xx-ent-wiki-sm==3.2.0

  Downloading https://github.com/explosion/spacy-models/releases/download/xx_ent_wiki_sm-3.2.0/xx_ent_wiki_sm-3.2.0-py3-none-any.whl (11.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.8/11.8 MB 602.8 kB/s eta 0:00:00
Requirement already satisfied: spacy<3.3.0,>=3.2.0 in ./venv/lib/python3.7/site-packages (from xx-ent-wiki-sm==3.2.0) (3.2.3)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in ./venv/lib/python3.7/site-packages (from spacy<3.3.0,>=3.2.0->xx-ent-wiki-sm==3.2.0) (3.0.6)
Requirement already satisfied: requests<3.0.0,>=2.13.0 in ./venv/lib/python3.7/site-packages (from spacy<3.3.0,>=3.2.0->xx-ent-wiki-sm==3.2.0) (2.27.1)
Requirement already satisfied: tqdm<5.0.0,>=4.38.0 in ./venv/lib/python3.7/site-packages (from spacy<3.3.0,>=3.2.0->xx-ent-wiki-sm==3.2.0) (4.63.0)
Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in ./venv/lib/...
parent bb789175
No related merge requests found
Showing with 51 additions and 2 deletions
+51 -2
# IDE :
.idea
/venv/
# Jupyter runs :
.ipynb_checkpoints
\ No newline at end of file
.ipynb_checkpoints
%% Cell type:code id:collectible-oasis tags:
``` python
# Import Libraries
import spacy
from spacy import displacy # Visualize spacy outputs
```
%% Cell type:code id:hydraulic-spread tags:
``` python
# Spacy model:
nlp = spacy.load("xx_ent_wiki_sm")
```
%% Output
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-4-e707cef1ae69> in <module>
1 # Spacy model:
----> 2 nlp = spacy.load("xx_ent_wiki_sm")
~/.local/lib/python3.7/site-packages/spacy/__init__.py in load(name, vocab, disable, exclude, config)
50 """
51 return util.load_model(
---> 52 name, vocab=vocab, disable=disable, exclude=exclude, config=config
53 )
54
~/.local/lib/python3.7/site-packages/spacy/util.py in load_model(name, vocab, disable, exclude, config)
425 if name in OLD_MODEL_SHORTCUTS:
426 raise IOError(Errors.E941.format(name=name, full=OLD_MODEL_SHORTCUTS[name])) # type: ignore[index]
--> 427 raise IOError(Errors.E050.format(name=name))
428
429
OSError: [E050] Can't find model 'xx_ent_wiki_sm'. It doesn't seem to be a Python package or a valid path to a data directory.
%% Cell type:code id:geological-share tags:
``` python
```
%% Cell type:code id:cooperative-toolbox tags:
``` python
```
%% Cell type:code id:integral-shame tags:
``` python
```
%% Cell type:code id:particular-agent tags:
``` python
```
%% Cell type:code id:sporting-project tags:
``` python
```
%% Cell type:code id:affected-camping tags:
``` python
```
%% Cell type:code id:adaptive-corporation tags:
``` python
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment