-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
cfg parameter is empty when run spacy.load() #5137
Comments
Thanks for the report, this does look like a problem for @ines may have a better idea, but my first suggestion would be that for name in pipeline:
if name not in disable:
config = meta.get("pipeline_args", {}).get(name, {})
config.update(overrides.get("pipeline_args", {}).get(name, {}))
factory = factories.get(name, name)
component = nlp.create_pipe(factory, config=config)
nlp.add_pipe(component, name=name) instead of: Lines 205 to 210 in 26a90f0
I think a second possibility would be to store the Line 197 in 26a90f0
|
Hello guys, there is no answer from @adrianeboyd ... I think this issue is kinda important. It appear in the spacy documentation also. Thanks 👍 |
Addressed by PR #5374, will be fixed in spaCy 2.3 onwards. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the behaviour
My component class:
I used entry points to add the component
my_component
to the pipeline. I updated thespacy_factories
fromsetup.py
. Then I runpython setup.py sdist
, generate the liben_core_web_test_sm
, and installed it bypip install
.However, when I run following code:
the parameter
cfg
from__init__(self, nlp, **cfg):
is EMPTY, so I can't getcategories
.Why does this happen? Did I do something wrong? Is this a bug? I just followed the documentation.
OBS:
**overrides
is not passed here https:/explosion/spaCy/blob/master/spacy/util.py#L209Your Environment
The text was updated successfully, but these errors were encountered: