-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support .cfg extension in parameters files #7122
Comments
@gitdoluquita, does Anyway, please feel free to propose a PR. You may need to look at how we handle serialization/deserialization. As an example, you can see Also, the place where we read params: Line 91 in 81eda7e
You may also need to coerce to certain types, that we need to save in |
Thank you @skshetry From what I know Spacy doesn't write anything in this config.cfg file. However interpolation (like variables) is possible inside of the file itself. I don't know if this could be a problem, I don't think so 🤔. A point in Spacy documentation makes me believe that having this file compatible with DVC params is a good Idea, specially thinking in Experiments workflow and Studio's Run Experiment feature:
I am not sure if I understood all the concerning points about Spacy's possible interpolation, I'm sorry. I will take a look at those points that you said, and start to work in a PR proposal. |
It seems like |
Hi, if I may contribute to this issue, I think we don't need support for the full Thinc configuration system. Just being able to parse and update a .cfg file would be a big plus. Support for variable interpolation seems to me neither necessary nor desirable since it means making changes appear in two places, for instance when running |
Hey there folks!
I'm using DVC for a Spacy project and, since v3 of Spacy, all the params of the model are stored in a
config.cfg
file, as explained here and here.I thought that would be nice to use the
config.cfg
as a parameters file, the same way as we can use a.toml
or.yaml
. Example:This maybe would, even, affect the Spacy integration with DVC that right now doesn't use the params option.
I would be glad to help with any other information, and, with some tips, try to implement this .cfg parser.
Thank you in advance.
The text was updated successfully, but these errors were encountered: