ner_youtube icon indicating copy to clipboard operation
ner_youtube copied to clipboard

i get this error in generate_rules() function after install spacy GPU version on collab

Open running-machin opened this issue 3 years ago • 0 comments


ValueError Traceback (most recent call last) in () 60 61 patterns = create_training_data("/content/hp_char.json","PERSON") ---> 62 generate_rules(patterns)

2 frames /usr/local/lib/python3.7/dist-packages/spacy/language.py in create_pipe(self, factory_name, name, config, raw_config, validate) 637 lang_code=self.lang, 638 ) --> 639 raise ValueError(err) 640 pipe_meta = self.get_factory_meta(factory_name) 641 config = config or {}

ValueError: [E002] Can't find factory for 'ruler' 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, parser, beam_parser, entity_linker, ner, beam_ner, entity_ruler, lemmatizer, tagger, morphologizer, senter, sentencizer, textcat, textcat_multilabel, en.lemmatizer

running-machin avatar May 20 '21 14:05 running-machin