From 20113b80631d1e76cd07c4e6ebaed6c768ae577a Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 29 Dec 2020 14:44:56 +0100 Subject: [PATCH] add train CLI example --- website/docs/api/cli.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/api/cli.md b/website/docs/api/cli.md index 5a6143a38..e8acc830d 100644 --- a/website/docs/api/cli.md +++ b/website/docs/api/cli.md @@ -787,6 +787,12 @@ in the section `[paths]`. $ python -m spacy train [config_path] [--output] [--code] [--verbose] [--gpu-id] [overrides] ``` +> #### Example +> +> ```cli +> $ python -m spacy train config.cfg --paths.train="./train" --paths.dev="./dev" --output output_dir +> ``` + | Name | Description | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `config_path` | Path to [training config](/api/data-formats#config) file containing all settings and hyperparameters. If `-`, the data will be [read from stdin](/usage/training#config-stdin). ~~Union[Path, str] \(positional)~~ |