stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
13.34k stars 4.21k forks source link

chapter 14: 03_document_term_matrix_v1.ipynb #186

Closed Eeonum closed 3 years ago

Eeonum commented 3 years ago

Describe the bug OSError: [E941] Can't find model 'en'. It looks like you're trying to load a model from a shortcut, which is obsolete as of spaCy v3.0. To load the model, use its full name instead:

nlp = spacy.load("en_core_web_sm")

For more details on the available models, see the models directory: https://spacy.io/models. If you want to create a blank model, use spacy.blank: nlp = spacy.blank("en")

To Reproduce

n/a

Expected behavior please follow the error and use nlp = spacy.load("en_core_web_sm")

Screenshots n/a

Environment If you are not using the latest version of the Docker imag:

Additional context please follow the error and use nlp = spacy.load("en_core_web_sm")

stefan-jansen commented 3 years ago

Please see the spaCy notebook for details on installation/usage.