From 0b4d1e1bc4fb0993b874b8da0cd73ab973e8eabd Mon Sep 17 00:00:00 2001 From: svlandeg Date: Thu, 6 Aug 2020 15:47:31 +0200 Subject: [PATCH] 'debug data' instead of 'debug-data' --- spacy/errors.py | 4 ++-- website/docs/api/cli.md | 4 ++-- website/docs/usage/training.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index 5c443ccad..7f47dd332 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -169,9 +169,9 @@ class Errors: "training a named entity recognizer, also make sure that none of " "your annotated entity spans have leading or trailing whitespace " "or punctuation. " - "You can also use the experimental `debug-data` command to " + "You can also use the experimental `debug data` command to " "validate your JSON-formatted training data. For details, run:\n" - "python -m spacy debug-data --help") + "python -m spacy debug data --help") E025 = ("String is too long: {length} characters. Max is 2**30.") E026 = ("Error accessing token at position {i}: out of bounds in Doc of " "length {length}.") diff --git a/website/docs/api/cli.md b/website/docs/api/cli.md index 00c3bac57..8c40be904 100644 --- a/website/docs/api/cli.md +++ b/website/docs/api/cli.md @@ -132,7 +132,7 @@ $ python -m spacy init config [output] [--base] [--lang] [--model] [--pipeline] | `--base`, `-b` | option | Optional base config file to auto-fill with defaults. | | `--lang`, `-l` | option | Optional language code to use for blank config. If a `--pipeline` is specified, the components will be added in order. | | `--model`, `-m` | option | Optional base model to copy config from. If a `--pipeline` is specified, only those components will be kept, and all other components not in the model will be added. | -| `--pipeline`, `-p` | option | Optional comma-separate pipeline of components to add to blank language or model. | +| `--pipeline`, `-p` | option | Optional comma-separated pipeline of components to add to blank language or model. | | **CREATES** | config | Complete and auto-filled config file for training. | ### init model {#init-model new="2"} @@ -271,7 +271,7 @@ low data labels and more. -The `debug-data` command is now available as a subcommand of `spacy debug`. It +The `debug data` command is now available as a subcommand of `spacy debug`. It takes the same arguments as `train` and reads settings off the [`config.cfg` file](/usage/training#config) and optional [overrides](/usage/training#config-overrides) on the CLI. diff --git a/website/docs/usage/training.md b/website/docs/usage/training.md index 5b9e76c02..37f838fda 100644 --- a/website/docs/usage/training.md +++ b/website/docs/usage/training.md @@ -83,12 +83,12 @@ $ python -m spacy init config config.cfg --base base_config.cfg > #### Tip: Debug your data > -> The [`debug-data` command](/api/cli#debug-data) lets you analyze and validate +> The [`debug data` command](/api/cli#debug-data) lets you analyze and validate > your training and development data, get useful stats, and find problems like > invalid entity annotations, cyclic dependencies, low data labels and more. > > ```bash -> $ python -m spacy debug-data en train.spacy dev.spacy --verbose +> $ python -m spacy debug data en train.spacy dev.spacy --verbose > ``` You can now run [`train`](/api/cli#train) with your training and development