[SOLVED] ValueError: [E002] Can't find factory for 'transformer' for language Italian (it) #10975
-
How to reproduce the behaviourCreate docker image with:
Your Environment
How do I solve this? I have no problems running the code locally on Windows, but the error is raised in a Linux Docker container. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Have you installed |
Beta Was this translation helpful? Give feedback.
Have you installed
spacy-transformers
? Not finding thetransformer
factory doesn't mean the model files can't be found, it means spaCy doesn't have any knowledge of Transformer functionality. If you install a model throughpip
then dependencies likespacy-transformers
will be automatically installed, but if you callspacy.load
that won't happen, so you need to insure you already have dependencies.