From 1b54446875267af0872c8373b19eb007bbe93d8c Mon Sep 17 00:00:00 2001 From: Madeesh Kannan Date: Fri, 25 Aug 2023 10:52:41 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sofie Van Landeghem --- website/docs/api/cli.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/api/cli.mdx b/website/docs/api/cli.mdx index 28fc6ab01..4c71c17f3 100644 --- a/website/docs/api/cli.mdx +++ b/website/docs/api/cli.mdx @@ -189,7 +189,7 @@ $ python -m spacy init fill-config [base_path] [output_file] [--diff] Auto-fill the Hugging Face model hyperpameters and loader parameters of a [Curated Transformer](/api/curatedtransformer) pipeline component in a -[.cfg file](/usage/training#config). The name and revision of the Hugging Face +[.cfg file](/usage/training#config). The name and revision of the Hugging Face model can either be passed as command-line arguments or read from the `initialize.components.transformer.encoder_loader` config section. @@ -201,7 +201,7 @@ $ python -m spacy init fill-curated-transformer [base_path] [output_file] [--mod | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `base_path` | Path to base config to fill, e.g. generated by the [quickstart widget](/usage/training#quickstart). ~~Path (positional)~~ | | `output_file` | Path to output `.cfg` file or "-" to write to stdout so you can pipe it to a file. Defaults to "-" (stdout). ~~Path (positional)~~ | -| `--model-name`, `-m` | Name of the Hugging Face model. Defaults to the model name in from the encoder loader config. ~~Optional[str] (option)~~ | +| `--model-name`, `-m` | Name of the Hugging Face model. Defaults to the model name from the encoder loader config. ~~Optional[str] (option)~~ | | `--model-revision`, `-r` | Revision of the Hugging Face model. Defaults to `main`. ~~Optional[str] (option)~~ | | `--pipe-name`, `-n` | Name of the Curated Transformer pipe whose config is to be filled. Defaults to the first transformer pipe. ~~Optional[str] (option)~~ | | `--code`, `-c` | Path to Python file with additional code to be imported. Allows [registering custom functions](/usage/training#custom-functions) for new architectures. ~~Optional[Path] \(option)~~ |