How to initialize EntityRuler with sourced tagger, parser, lemmatizer, … components? #9587
Unanswered
kinghuang
asked this question in
Help: Coding & Implementations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to assemble a model where the
tagger
,parser
,lemmatizer
and other components are sourced from another model. This model also has several EntityRulers, which I'm initializing with patterns. Some of the patterns use theLEMMA
attribute.Config Excerpts:
Full Config File
Example Pattern:
Problem:
When I run spacy assemble, a ValueError occurs. The
lemmatizer
component is not active in the pipeline.Full Stack Trace
This is because
assemble_cli()
disables all sourced pipeline components before callinginitialize()
on the remaining components.spaCy/spacy/cli/assemble.py
Lines 47 to 51 in 90ec820
Pipeline Components During EntityRuler.initialize():
All the sourced pipeline components, including
lemmatizer
are disabled.Question:
How I can initialize EntityRuler components with patterns that use attributes such as
LEMMA
in a config where thelemmatizer
and other components are sourced?I think what is needed is for the
assemble
command to not initialize the sourced pipeline components, instead of disabling them during intialization.Beta Was this translation helpful? Give feedback.
All reactions