SpaCy model won't import in AWS Glue job (python shell) #7368
-
How to reproduce the problemI can't import 2 spacy models en_core_web_sm and de_core_news_sm into an AWS Glue job that I created on python shell.
from setuptools import setup
The same process when gets applied to the spacy models en_core_web_sm/de_core_news_sm won't work and throws an error: _Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory._ Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You have to install the models separately - you don't get them automatically when installing spaCy.
or install via pip by using the direct URL (have a peek at the compatibility table to adjust the version as needed):
I haven't worked with Glue myself yet - but hopefully this helps to set up your installation? |
Beta Was this translation helpful? Give feedback.
You have to install the models separately - you don't get them automatically when installing spaCy.
You can either do
or install via pip by using the direct URL (have a peek at the compatibility table to adjust the version as needed):
I haven't worked with Glue myself yet - but hopefully this helps to set up your installation?