-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow overrides without .
#4
Comments
Context: explosion/spaCy#11735. I had a look and bypassing this wouldn't be trivial. Config values without sections (such as So while possible, it would be a redesign of how sections are processing by |
Maybe then it makes sense to redesign how the |
Yes, I think that makes sense. Pinging @polm to get his opinion. |
I think it makes sense to have this as a feature if it's feasible to implement it. Putting everything in a single top-level section sounds like it makes sense, but won't that require rewriting all the sections in the config file? It seems like a common workaround is to insert a filler section at the top, like |
I think this would just be for internal processing of the project config, so there isn't any danger of collisions? As in here: |
We can either add a level of hierarchy altogether or gather all top-level attributes in one made-up section and treat that as a special case? I'm leaning towards the former. |
Oh, it is already put into |
OK, I see what's going on. What it currently does is read in the config, then create a new object where the config is under the key "project", and then goes from there. So the rewriting is part of the normal serialization process, and because default values aren't written out it doesn't change anything. That happens here: |
Shall we close this and open an issue for |
Mainly as a note for the future because it came up in the
check_requirements
overrides forspacy project
:Is there a technical limitation that requires
confection
to only support overrides that contain.
or could this be removed to also support top-level overrides?The text was updated successfully, but these errors were encountered: