Skip to content
Discussion options

You must be logged in to vote

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"
                ])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smisra1
Comment options

Answer selected by smisra1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / training Feature: Training utils, Example, Corpus and converters feat / config Feature: Training config
2 participants