mirror of https://github.com/explosion/spaCy.git
'debug data' instead of 'debug-data'
This commit is contained in:
parent
881e3f8fd0
commit
0b4d1e1bc4
|
@ -169,9 +169,9 @@ class Errors:
|
||||||
"training a named entity recognizer, also make sure that none of "
|
"training a named entity recognizer, also make sure that none of "
|
||||||
"your annotated entity spans have leading or trailing whitespace "
|
"your annotated entity spans have leading or trailing whitespace "
|
||||||
"or punctuation. "
|
"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"
|
"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.")
|
E025 = ("String is too long: {length} characters. Max is 2**30.")
|
||||||
E026 = ("Error accessing token at position {i}: out of bounds in Doc of "
|
E026 = ("Error accessing token at position {i}: out of bounds in Doc of "
|
||||||
"length {length}.")
|
"length {length}.")
|
||||||
|
|
|
@ -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. |
|
| `--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. |
|
| `--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. |
|
| `--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. |
|
| **CREATES** | config | Complete and auto-filled config file for training. |
|
||||||
|
|
||||||
### init model {#init-model new="2"}
|
### init model {#init-model new="2"}
|
||||||
|
@ -271,7 +271,7 @@ low data labels and more.
|
||||||
|
|
||||||
<Infobox title="New in v3.0" variant="warning">
|
<Infobox title="New in v3.0" variant="warning">
|
||||||
|
|
||||||
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
|
takes the same arguments as `train` and reads settings off the
|
||||||
[`config.cfg` file](/usage/training#config) and optional
|
[`config.cfg` file](/usage/training#config) and optional
|
||||||
[overrides](/usage/training#config-overrides) on the CLI.
|
[overrides](/usage/training#config-overrides) on the CLI.
|
||||||
|
|
|
@ -83,12 +83,12 @@ $ python -m spacy init config config.cfg --base base_config.cfg
|
||||||
|
|
||||||
> #### Tip: Debug your data
|
> #### 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
|
> your training and development data, get useful stats, and find problems like
|
||||||
> invalid entity annotations, cyclic dependencies, low data labels and more.
|
> invalid entity annotations, cyclic dependencies, low data labels and more.
|
||||||
>
|
>
|
||||||
> ```bash
|
> ```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
|
You can now run [`train`](/api/cli#train) with your training and development
|
||||||
|
|
Loading…
Reference in New Issue