Modify config file using CLI #10749
Answered
by
rmitsch
smisra1
asked this question in
Help: Coding & Implementations
-
I wanted to modify my config file. But I can't escape the decimal point.
I encountered the the error:
How could I escape the decimal? |
Beta Was this translation helpful? Give feedback.
Answered by
rmitsch
May 3, 2022
Replies: 1 comment 1 reply
-
Hi @smisra1! Try separating the argument values from the arguments: subprocess.run([sys.executable,
"-m", "spacy",
"train", "configs.cfg",
"--output", "./output_1",
"--paths.train",
"./train_data.spacy",
"--paths.dev", "./dev_data.spacy",
"--nlp.batch_size", "128",
"--training.max_epochs", "100",
"--training.dropout", "0.4",
"--training.optimizer.l2", "0.001",
"--training.optimizer.learn_rate", "0.001"
]) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
smisra1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @smisra1! Try separating the argument values from the arguments: