spacy.load('en') - download?

Are nlp = spacy.load('en') and nlp = spacy.load('en_core_web_sm') same? (i am assuming not) I could find a downloadable tar file for en_core_web-sm. but not for the default model 'en'. where can i find it.

When i install directly from the internet, i could use the command "python -m spacy download en" but i am trying to install in a machine that does not have direct internet.

Yes, en is the shortcut for the default English model en_core_web_sm. You can find more details on installing models from the packaged .tar.gz archives here:

In general, I'd always recommend using the full model names like en_core_web_sm instead of the shortcuts like en. We still support the shortcuts for backwards comaptibility and for people who prefer to type less. But it's always better to be explicit, IMO.

1 Like

Thank you very much for the immediate clarification @ines.

1 Like