Skip to content

Error on spacy.load(): "writing directly to language.factories isn't needed anymore in spacy v3. instead..." #7792

Discussion options

You must be logged in to vote

Update: this issue was caused by the spacy-dbpedia-spotlight library when I run spacy.load(model_name). I uninstalled this package and it worked

~\AppData\Local\Continuum\anaconda3\lib\site-packages\spacy_dbpedia_spotlight_init_.py in
5 version = util.pkg_meta["version"]
6
----> 7 Language.factories['overwrite_vectors'] = lambda nlp, **cfg: EntityLinker(nlp, **cfg)
8
9 def load(language_code, nlp=None):

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codybakken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues
1 participant