add pretrain example

This commit is contained in:
svlandeg 2020-12-29 14:51:23 +01:00
parent 1d0ef98873
commit 543073bf9d
1 changed files with 8 additions and 1 deletions

View File

@ -786,7 +786,7 @@ in the section `[paths]`.
> #### Example
>
> ```cli
> $ python -m spacy train config.cfg --paths.train="./train" --paths.dev="./dev" --output output_dir
> $ python -m spacy train config.cfg --output output_dir --paths.train="./train" --paths.dev="./dev"
> ```
```cli
@ -829,6 +829,13 @@ auto-generated by setting `--pretraining` on
</Infobox>
> #### Example
>
> ```cli
> $ python -m spacy pretrain config.cfg output_pretrain --paths.raw_text="data.jsonl"
> ```
```cli
$ python -m spacy pretrain [config_path] [output_dir] [--code] [--resume-path] [--epoch-resume] [--gpu-id] [overrides]
```