From c2f83f25105a8bc18fce6ab5386f6c549de98383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Wed, 18 Jan 2023 15:18:28 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Madeesh Kannan --- spacy/language.py | 2 +- website/docs/api/language.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index d3b183d46..01931b2c9 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1342,7 +1342,7 @@ class Language: get_examples (Callable[[], Iterable[Example]]): Optional function that returns gold-standard Example objects. - labels (Dict[str, Any]): labels to pass to pipe initialization, using + labels (Dict[str, Any]): Labels to pass to pipe initialization, using the names of the pipes as keys. Overrides labels that are in the model configuration. sgd (Optional[Optimizer]): An optimizer to use for updates. If not diff --git a/website/docs/api/language.mdx b/website/docs/api/language.mdx index 557928782..22f3bbba1 100644 --- a/website/docs/api/language.mdx +++ b/website/docs/api/language.mdx @@ -333,7 +333,7 @@ and custom registered functions if needed. See the | `component_cfg` | Optional dictionary of keyword arguments for components, keyed by component names. Defaults to `None`. ~~Optional[Dict[str, Dict[str, Any]]]~~ | | **RETURNS** | The updated `losses` dictionary. ~~Dict[str, float]~~ | -## Language.distill {id="distill",tag="method",version="4"} +## Language.distill {id="distill",tag="method,experimental",version="4"} Distill the models in a student pipeline from a teacher pipeline.