Fix doc string

This commit is contained in:
Matthew Honnibal 2024-04-16 12:24:45 +02:00
parent ef18829fd9
commit bc3337d539

View File

@ -850,7 +850,7 @@ class Language:
where you provide a config and let spaCy construct the instance). See 'spacy.load' where you provide a config and let spaCy construct the instance). See 'spacy.load'
for details of how to load back a pipeline with components added by instance. for details of how to load back a pipeline with components added by instance.
pipe_instance (Callable[[Doc], Doc]): The component to add. component (Callable[[Doc], Doc]): The component to add.
name (str): Name of pipeline component. Overwrites existing name (str): Name of pipeline component. Overwrites existing
component.name attribute if available. If no name is set and component.name attribute if available. If no name is set and
the component exposes no name attribute, component.__name__ is the component exposes no name attribute, component.__name__ is