I am working on writing a lambda function which depends on Spacy's "en_core_web_sm" model. Due to limitation of AWS Lambda, I need to find a mechanism which allows me to download the model at runtime (I can afford to increase the lambda timeout).
Note: I can't use EFS at the moment due to some requirement restriction.
You can do this.
from spacy.cli import download
download("en_core_web_sm")
See the source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With