add train CLI example

This commit is contained in:
svlandeg 2020-12-29 14:44:56 +01:00
parent 5ca57d8221
commit 20113b8063
1 changed files with 6 additions and 0 deletions

View File

@ -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)~~ |