Installation Spacy error

I’m not able to install spacy.

pip3 install rasa[spacy]

after this command I was trying to install this command(python -m spacy download en_core_web_md) but it throws me error

(rasacb) C:\Users\SHANVIJ\rasacb> python -m spacy download en_core_web_md Collecting en-core-web-md==3.0.0

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))’: /explosion/spacy-models/releas es/download/en_core_web_md-3.0.0/en_core_web_md-3.0.0-py3-none-any.whl

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))’: /explosion/spacy-models/releas es/download/en_core_web_md-3.0.0/en_core_web_md-3.0.0-py3-none-any.whl

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))’: /explosion/spacy-models/releas es/download/en_core_web_md-3.0.0/en_core_web_md-3.0.0-py3-none-any.whl

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))’: /explosion/spacy-models/releas es/download/en_core_web_md-3.0.0/en_core_web_md-3.0.0-py3-none-any.whl

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))’: /explosion/spacy-models/releas es/download/en_core_web_md-3.0.0/en_core_web_md-3.0.0-py3-none-any.whl

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /explosion/spacymodels/releases/download/en_core_web_md3.0.0/en_core_web_md-3.0.0-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’)))

Sometimes GitHub suffers from a connection issue and then the spaCy models won’t download. Just to check, this issue persists?

Thanks for reply. My friend found a solution I followed his instruction and installed setup file in rasa environment.

I have created a bot thats asks user information (using forms) and stores in database. I want to extract name from the user. so Im using spacy entity extractor and added dimension [‘PERSON’]. I have some doubts in nlu and domain. should I add the entities PERSON for name in nlu and add the entities in domain.

version: “2.0”

nlu:

  • intent: Names examples: |
    • My name is [shanthosh] (PERSON)
    • I am [Virat] (PERSON)
    • [vijay] (PERSON)

version: “2.0”

intents:

greet

goodbye

mobile_number

Names: use_entities:

- PERSON

entities:

PERSON

slots:

name:

type: text

influence_conversation: false

forms:

user_details_form:

required_slots: name:

- type: from_text
  entity: PERSON

SpaCy models are pre-trained. We don’t fine-tune them on Rasa data. They merely predict as-is. Name detection, it deserves mentioning, is a hard problem. You might, as an alternative, enjoy using name-lists instead. This approach is explained in more detail here.