Fix labels type in docstring

This commit is contained in:
Daniël de Kok 2023-01-30 10:11:51 +01:00
parent f6312eabba
commit 7ce7672512

View File

@ -1346,9 +1346,9 @@ 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 (Optional[Dict[str, Any]]): Labels to pass to pipe initialization,
the names of the pipes as keys. Overrides labels that are in the using the names of the pipes as keys. Overrides labels that are in
model configuration. the model configuration.
sgd (Optional[Optimizer]): An optimizer to use for updates. If not sgd (Optional[Optimizer]): An optimizer to use for updates. If not
provided, will be created using the .create_optimizer() method. provided, will be created using the .create_optimizer() method.
RETURNS (thinc.api.Optimizer): The optimizer. RETURNS (thinc.api.Optimizer): The optimizer.