Skip to content

Support .cfg extension in parameters files #7122

@gitdoluquita

Description

@gitdoluquita

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:

  train:
    cmd: python -m spacy train config.cfg
    deps:
      - data/inter/train_legal_ner.spacy
      - data/inter/dev_legal_ner.spacy
    params:
      - config.cfg:
        - training.max_steps
        - training.dropout

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: paramsRelated to dvc paramsenhancementEnhances DVCp3-nice-to-haveIt should be done this or next sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions