Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find factory for 'rebel' for language English (en). #63

Open
flamingrickpat opened this issue Jun 9, 2023 · 1 comment
Open

Comments

@flamingrickpat
Copy link

I'm trying to run the Spacy example but I'm getting this error:

ValueError: [E002] Can't find factory for 'rebel' for language English (en). This usually happens when spaCy calls nlp.create_pipewith 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).

Available factories: attribute_ruler, tok2vec, merge_noun_chunks, merge_entities, merge_subtokens, token_splitter, doc_cleaner, parser, beam_parser, lemmatizer, trainable_lemmatizer, entity_linker, ner, beam_ner, entity_ruler, tagger, morphologizer, senter, sentencizer, textcat, spancat, spancat_singlelabel, future_entity_ruler, span_ruler, textcat_multilabel, en.lemmatizer
`

I already have transformers and spacy-transformers installed.

@Maximiliano-Villanueva
Copy link

It works for me. Have you download and imported the spacy_component from Babelscape/rebel repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants