Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AttributeError: module 'spacy' has no attribute 'load'

import spacy
nlp = spacy.load('en_core_web_sm')

**Error:** Traceback (most recent call last):

  File "C:\Users\PavanKumar\.spyder-py3\ExcelML.py", line 27, in <module>
    nlp = spacy.load('en_core_web_sm')

AttributeError: module 'spacy' has no attribute 'load'

Can anyone suggest me a solution?

like image 856
Arvind Avatar asked May 06 '26 17:05

Arvind


1 Answers

Don't name the file spacy.py, it will create conflict.

like image 142
K. Mitra Avatar answered May 08 '26 08:05

K. Mitra