Remove note about spacy-transformers from error message

This commit is contained in:
shadeMe 2023-10-24 10:46:56 +02:00
parent be4a7aab86
commit 03cd5c941f
No known key found for this signature in database
GPG Key ID: 6FCA9FC635B2A402

View File

@ -226,7 +226,6 @@ class Errors(metaclass=ErrorsWithCodes):
E002 = ("Can't find factory for '{name}' for language {lang} ({lang_code}). "
"This usually happens when spaCy calls `nlp.{method}` with a custom "
"component name that's not registered on the current language class. "
"If you're using a Transformer, make sure to install 'spacy-transformers'. "
"If you're using a custom component, make sure you've added the "
"decorator `@Language.component` (for function components) or "
"`@Language.factory` (for class components).\n\nAvailable "