I haven't tried using https://github.com/explosion/spacy-models/releases/download/en_core_web_trf-3.4.0/en_core_web_trf-3.4.0.tar.gz
but if you're seeing installation failures when your app is being setup, then I suggest doing one of the following options:
- Add a post deployment script that will run
python -m spacy download en_core_web_sm
after your application has finished installation. This assumes you have youSCM_DO_BUILD_DURING_DEPLOYMENT
set to true on the app service. - Create a local app directory folder and extract the en_core_web_trf model and include that directory with your deployment. Still include spacy in your requirements.txt and in your python code, reference that folder i.e.
spacy.load('<local-folder>/en_core_web_trf-3.4.0')
If you have an issue with one of above workarounds, please comment down below.