Skip to content

Single quotes in config files #9454

@Mtaylert

Description

@Mtaylert

How to reproduce the behaviour

When initializing my configuration file, I set my train and dev paths as follows in my base_config.cfg:

train = 'data/train.spacy'
dev = 'data/valid.spacy'

After running python -m spacy init fill-config ./base_config.cfg ./config.cfg, the single quotes wrapping each file path result in the following

train = "'data/train.spacy'"
dev = "'data/valid.spacy'"

I'm wondering if there should be a fix to accept single quotes as a string wrappers instead of assume it is part of the literal path.

Your Environment

  • Operating System: Mac
  • Python Version Used: 3.9
  • spaCy Version Used: 3.1.3
  • Environment Information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation and websitefeat / configFeature: Training config

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions