Replies: 1 comment 1 reply
-
Hi @lisabecker-ml6 , that's >should< be working well, although we'll check the other system dependencies. First though, here's a session that starts clean with Py 3.8 on macOS, installs spaCy 3.3.1, then runs pytextrank:
Depending on the system environment, installing with When working in Jupyter, it can help for troubleshooting to get more system info:
For example, the Python executable may be different than what's expected. Based on the error message and the available factories, it looks like pytextrank isn't being installed in the same environment as the Python executable that the Jupyter kernel is running. Alternatively, could you please try using a We'll get this fixed! :) |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use this package for the first time and followed the README:
This throws an error at the last line:
ValueError: [E002] Can't find factory for 'textrank' for language English (en). This usually happens when spaCy calls 'nlp.create_pipe' 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).
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, future_entity_ruler, span_ruler, textcat_multilabel, en.lemmatizer`
Is this an incompatibility with SpaCy version 3.3.1 or have I overseen something crucial? Which SpaCy version do you recommend? (I restarted the kernel after installing pytextrank)
Beta Was this translation helpful? Give feedback.
All reactions