talmago/spacy_ke

cant use with zh model

asd3427 opened this issue · 0 comments

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

'''