Back

Spacy.load('en') ERROR

Hi guys,
I'm trying to use spaCy library but get error:

self.nlp = spacy.load('en')


 OSError : [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

When we do:

 pip install spacy

spaCy links the name 'en' to the package it downloaded, e.g. 'en_core_web_sm' , but it not happend in QC enviroment.
Is there a solution to this issue?

 

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Alexander,

We do not have ‘en_core_web_sm’ as a supported package. To see the supported packages, refer to the supported libraries list.
To request a library, please contact support@quantconnect.com.

Best,
Gahl Goziker 

1

Hi Gahl.

Thank you for your answer. You right, models are not downloaded automatically when we install spaCy, so we have to download them separately.

Although it's weird to have spaCy without being able to load english models.

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed