[E002] Can't find factory for 'transformer' in Spanish (es) #9926
-
I have a problem using es_dep_news_trf, give me the following error: KeyError: "[E002] Can't find factory for 'transformer'. This usually happens when spaCy calls I read in this space if I install this: pip install spacy[transformers] maybe the problem fixed, but isn`t. So, I have a doubt what should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Transformer models require a separate package, |
Beta Was this translation helpful? Give feedback.
Transformer models require a separate package,
spacy-transformers
, which is why you need to installspacy[transformers]
. If you have that installed it should work, or at least you shouldn't get that error. Can you provide the output ofspacy info
andpip freeze
? It's possible your environment got in a weird state. I would recommend reinstalling from scratch in a clean environment, usingpip install spacy[transformers]
to start with.