Add defaults to docs

Minor fixes
This commit is contained in:
shademe 2022-12-22 17:16:31 +01:00
parent 41ec44d99a
commit 7e793ded5a
No known key found for this signature in database
GPG Key ID: 6FCA9FC635B2A402

View File

@ -513,7 +513,7 @@ a [Weights & Biases](https://www.wandb.com/) dashboard.
Instead of using one of the built-in loggers, you can
[implement your own](/usage/training#custom-logging).
#### spacy.ConsoleLogger.v2 {#ConsoleLogger tag="registered function"}
#### spacy.ConsoleLogger.v2 {tag="registered function"}
> #### Example config
>
@ -565,10 +565,10 @@ start decreasing across epochs.
</Accordion>
| Name | Description |
| ---------------- | -------------------------------------------------------------------------------------------------------- |
| `progress_bar` | Whether the logger should print a progress bar tracking the steps till the next evaluation pass.~~bool~~ |
| `console_output` | Whether the logger should print the logs in the console. ~~bool~~ |
| `output_file` | The file to save the training logs to. ~~Optional[Union[str, Path]]~~ |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `progress_bar` | Whether the logger should print a progress bar tracking the steps till the next evaluation pass (default: `False`).~~bool~~ |
| `console_output` | Whether the logger should print the logs in the console (default: `True`). ~~bool~~ |
| `output_file` | The file to save the training logs to (default: `None`). ~~Optional[Union[str, Path]]~~ |
#### spacy.ConsoleLogger.v3 {#ConsoleLogger tag="registered function"}
@ -583,14 +583,14 @@ start decreasing across epochs.
> ```
Writes the results of a training step to the console in a tabular format and
saves them to a `jsonl` file.
optionally saves them to a `jsonl` file.
| Name | Description |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `progress_bar` | Type of progress bar to show in the console: `train` or `eval` |
| | They track the number of steps until `training.max_steps` and `training.eval_frequency` are reached respectively.~~Optional[str]~~ |
| `console_output` | Whether the logger should print the logs in the console.~~bool~~ |
| `output_file` | The file to save the training logs to. ~~Optional[Union[str, Path]]~~ |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `progress_bar` | Type of progress bar to show in the console: ``"train"`, `"eval"` or `None`. |
| | The bar tracks the number of steps until `training.max_steps` and `training.eval_frequency` are reached respectively (default: `None`).~~Optional[str]~~ |
| `console_output` | Whether the logger should print the logs in the console (default: `True`). ~~bool~~ |
| `output_file` | The file to save the training logs to (default: `None`). ~~Optional[Union[str, Path]]~~ |
## Readers {#readers}