From d23d7602db492dca65190eb9a998b1054dc9d24e Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 18 Jan 2023 08:40:45 +0100 Subject: [PATCH] Shell example formatting --- website/docs/usage/v3-5.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/usage/v3-5.mdx b/website/docs/usage/v3-5.mdx index 9e7400e0e..de614e942 100644 --- a/website/docs/usage/v3-5.mdx +++ b/website/docs/usage/v3-5.mdx @@ -20,8 +20,8 @@ The [`apply` CLI](/api/cli#apply) can be used to apply a pipeline to one or more `.txt`, `.jsonl` or `.spacy` input files, saving the annotated docs in a single `.spacy` file. -```shell -spacy apply en_core_web_sm my_texts/ output.spacy +```bash +$ spacy apply en_core_web_sm my_texts/ output.spacy ``` #### benchmark CLI @@ -35,8 +35,8 @@ The new `benchmark speed` CLI performs warmup rounds before measuing the speed in words per second on batches of randomly shuffled documents from the provided data. -```shell -spacy benchmark speed my_pipeline data.spacy +```bash +$ spacy benchmark speed my_pipeline data.spacy ``` The output is the mean performance using batches (`nlp.pipe`) with a 95% @@ -57,8 +57,8 @@ The following command runs 20 trials for the `spancat` component in `my_pipeline`, recording the `spans_sc_f` score for each value of the threshold `[components.spancat.threshold]` from `0.0` to `1.0`: -```shell -spacy find-threshold my_pipeline data.spacy spancat threshold spans_sc_f --n_trials 20 +```bash +$ spacy find-threshold my_pipeline data.spacy spancat threshold spans_sc_f --n_trials 20 ``` The `find-threshold` CLI can be used with `textcat_multilabel`, `spancat` and