From 4fe4bab1c9c9c3ab60c75fe11006f1cac29f4b41 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 17 Aug 2020 17:10:15 +0200 Subject: [PATCH] typo fixes --- website/docs/api/data-formats.md | 2 +- website/docs/usage/training.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/api/data-formats.md b/website/docs/api/data-formats.md index 4577d7ef3..8ed3232ec 100644 --- a/website/docs/api/data-formats.md +++ b/website/docs/api/data-formats.md @@ -161,7 +161,7 @@ run [`spacy pretrain`](/api/cli#pretrain). | `dropout` | The dropout rate. ~~float~~ | `0.2` | | `n_save_every` | Saving frequency. ~~int~~ | `null` | | `batch_size` | The batch size or batch size [schedule](https://thinc.ai/docs/api-schedules). ~~Union[int, Sequence[int]]~~ | `3000` | -| `seed` | The random seed. ~~int~~ | `${system.seed}` | +| `seed` | The random seed. ~~int~~ | `${system:seed}` | | `use_pytorch_for_gpu_memory` | Allocate memory via PyTorch. ~~bool~~ | `${system:use_pytorch_for_gpu_memory}` | | `tok2vec_model` | tok2vec model section in the config. ~~str~~ | `"components.tok2vec.model"` | | `objective` | The pretraining objective. ~~Dict[str, Any]~~ | `{"type": "characters", "n_characters": 4}` | diff --git a/website/docs/usage/training.md b/website/docs/usage/training.md index f605750f6..94c5ea1cb 100644 --- a/website/docs/usage/training.md +++ b/website/docs/usage/training.md @@ -144,7 +144,7 @@ https://github.com/explosion/spaCy/blob/develop/spacy/default_config.cfg Under the hood, the config is parsed into a dictionary. It's divided into sections and subsections, indicated by the square brackets and dot notation. For -example, `[training]` is a section and `[training.batch_size]` a subsections. +example, `[training]` is a section and `[training.batch_size]` a subsection. Subsections can define values, just like a dictionary, or use the `@` syntax to refer to [registered functions](#config-functions). This allows the config to not just define static settings, but also construct objects like architectures, @@ -156,7 +156,7 @@ sections of a config file are: | `nlp` | Definition of the `nlp` object, its tokenizer and [processing pipeline](/usage/processing-pipelines) component names. | | `components` | Definitions of the [pipeline components](/usage/processing-pipelines) and their models. | | `paths` | Paths to data and other assets. Re-used across the config as variables, e.g. `${paths:train}`, and can be [overwritten](#config-overrides) on the CLI. | -| `system` | Settings related to system and hardware. Re-used across the config as variables, e.g. `${system.seed}`, and can be [overwritten](#config-overrides) on the CLI. | +| `system` | Settings related to system and hardware. Re-used across the config as variables, e.g. `${system:seed}`, and can be [overwritten](#config-overrides) on the CLI. | | `training` | Settings and controls for the training and evaluation process. | | `pretraining` | Optional settings and controls for the [language model pretraining](#pretraining). |