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

cant use with zh model #14

Open
asd3427 opened this issue Nov 17, 2021 · 0 comments
Open

cant use with zh model #14

asd3427 opened this issue Nov 17, 2021 · 0 comments

Comments

@asd3427
Copy link

asd3427 commented Nov 17, 2021

im use spacy and spacy_ke with zh_core_web_md to extract keyword but get some errors hop can tell me how to fix

'''
ValueError: [E002] Can't find factory for 'PositionRank' for language Chinese (zh). 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, parser, beam_parser, entity_linker, ner, beam_ner, entity_ruler, lemmatizer, tagger, morphologizer, senter, sentencizer, textcat, spancat, textcat_multilabel, yake, textrank, positionrank, topicrank, transformer

'''

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

1 participant