mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 03:10:22 +03:00
Fix labels type in docstring
This commit is contained in:
parent
f6312eabba
commit
7ce7672512
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user