I am trying to install en_core_web_sm
model from spacy on my databricks cluster. Is there a way to install it without using the below command in the notebook?
%sh
python -m spacy download en_core_web_sm
Reasons I am asking for an alternative:
- I want the model to be installed at a cluster level - above method only installs it at a notebook level
- Using the above code requires me to use the %sh magic commands in my
notebook and magic commands are not compatible with a notebook I feed
in
dbutils.notebook.run
It would be best if there is a way I can use pip install, but I don't think that's possible. Please note that I already have Spacy installed. This question is only in reference to spacy models