fix typos

This commit is contained in:
svlandeg 2020-08-20 10:20:40 +02:00
parent f728c00cbb
commit ae719b354f

View File

@ -5,7 +5,7 @@ menu:
- ['Training Config', 'config'] - ['Training Config', 'config']
- ['Training Data', 'training'] - ['Training Data', 'training']
- ['Pretraining Data', 'pretraining'] - ['Pretraining Data', 'pretraining']
- ['Vocabulary', 'vocab'] - ['Vocabulary', 'vocab-jsonl']
- ['Model Meta', 'meta'] - ['Model Meta', 'meta']
--- ---
@ -392,8 +392,8 @@ tokenization can be provided.
> ``` > ```
| Key | Description | | Key | Description |
| -------- | ------------------------------------------------------------------ | | -------- | --------------------------------------------------------------------- |
| `text` | The raw input text. Is not required if `tokens` available. ~~str~~ | | `text` | The raw input text. Is not required if `tokens` is available. ~~str~~ |
| `tokens` | Optional tokenization, one string per token. ~~List[str]~~ | | `tokens` | Optional tokenization, one string per token. ~~List[str]~~ |
```json ```json
@ -407,7 +407,7 @@ tokenization can be provided.
## Lexical data for vocabulary {#vocab-jsonl new="2"} ## Lexical data for vocabulary {#vocab-jsonl new="2"}
To populate a model's vocabulary, you can use the To populate a model's vocabulary, you can use the
[`spacy init-model`](/api/cli#init-model) command and load in a [`spacy init model`](/api/cli#init-model) command and load in a
[newline-delimited JSON](http://jsonlines.org/) (JSONL) file containing one [newline-delimited JSON](http://jsonlines.org/) (JSONL) file containing one
lexical entry per line via the `--jsonl-loc` option. The first line defines the lexical entry per line via the `--jsonl-loc` option. The first line defines the
language and vocabulary settings. All other lines are expected to be JSON language and vocabulary settings. All other lines are expected to be JSON
@ -511,11 +511,11 @@ of truth** used for loading a model.
> ``` > ```
| Name | Description | | Name | Description |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `lang` | Model language [ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). Defaults to `"en"`. ~~str~~ | | `lang` | Model language [ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). Defaults to `"en"`. ~~str~~ |
| `name` | Model name, e.g. `"core_web_sm"`. The final model package name will be `{lang}_{name}`. Defaults to `"model"`. ~~str~~ | | `name` | Model name, e.g. `"core_web_sm"`. The final model package name will be `{lang}_{name}`. Defaults to `"model"`. ~~str~~ |
| `version` | Model version. Will be used to version a Python package created with [`spacy package`](/api/cli#package). Defaults to `"0.0.0"`. ~~str~~ | | `version` | Model version. Will be used to version a Python package created with [`spacy package`](/api/cli#package). Defaults to `"0.0.0"`. ~~str~~ |
| `spacy_version` | spaCy version range the model is compatible with. Defaults to spaCy version used to create the model, up to next minor version, which is the default compatibility for the available [pretrained models](/models). For instance, a model trained with v3.0.0 will have the version range `">=3.0.0,<3.1.0"`. ~~str~~ | | `spacy_version` | spaCy version range the model is compatible with. Defaults to the spaCy version used to create the model, up to next minor version, which is the default compatibility for the available [pretrained models](/models). For instance, a model trained with v3.0.0 will have the version range `">=3.0.0,<3.1.0"`. ~~str~~ |
| `parent_package` | Name of the spaCy package. Typically `"spacy"` or `"spacy_nightly"`. Defaults to `"spacy"`. ~~str~~ | | `parent_package` | Name of the spaCy package. Typically `"spacy"` or `"spacy_nightly"`. Defaults to `"spacy"`. ~~str~~ |
| `description` | Model description. Also used for Python package. Defaults to `""`. ~~str~~ | | `description` | Model description. Also used for Python package. Defaults to `""`. ~~str~~ |
| `author` | Model author name. Also used for Python package. Defaults to `""`. ~~str~~ | | `author` | Model author name. Also used for Python package. Defaults to `""`. ~~str~~ |