mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 11:20:19 +03:00
Apply suggestions from code review
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
parent
d0eab0b995
commit
c2f83f2510
|
@ -1342,7 +1342,7 @@ class Language:
|
||||||
|
|
||||||
get_examples (Callable[[], Iterable[Example]]): Optional function that
|
get_examples (Callable[[], Iterable[Example]]): Optional function that
|
||||||
returns gold-standard Example objects.
|
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
|
the names of the pipes as keys. Overrides labels that are in the
|
||||||
model configuration.
|
model configuration.
|
||||||
sgd (Optional[Optimizer]): An optimizer to use for updates. If not
|
sgd (Optional[Optimizer]): An optimizer to use for updates. If not
|
||||||
|
|
|
@ -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]]]~~ |
|
| `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]~~ |
|
| **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.
|
Distill the models in a student pipeline from a teacher pipeline.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user