mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-04 03:15:52 +03:00
Fix comment
This commit is contained in:
parent
0c8393ef8e
commit
ef18829fd9
|
@ -771,12 +771,13 @@ class Language:
|
||||||
raw_config: Optional[Config] = None,
|
raw_config: Optional[Config] = None,
|
||||||
validate: bool = True,
|
validate: bool = True,
|
||||||
) -> PipeCallable:
|
) -> PipeCallable:
|
||||||
"""Add a component to the processing pipeline. Valid components are
|
"""Add a component to the processing pipeline, by factory name and config.
|
||||||
callables that take a `Doc` object, modify it and return it. Only one
|
Valid components are callables that take a `Doc` object, modify it, and return it.
|
||||||
of before/after/first/last can be set. Default behaviour is "last".
|
Only one of before/after/first/last can be set. Default behaviour is "last".
|
||||||
Components can be added either by factory name or by instance. If
|
|
||||||
an instance is supplied and you serialize the pipeline, you'll need
|
Using this method tells spaCy how to construct your component, allowing you to load
|
||||||
to also pass an instance into spacy.load() to construct the pipeline.
|
your pipeline back using generic code. See 'Language.add_pipe_instance' to add a
|
||||||
|
component object instead, avoiding the need to create a factory.
|
||||||
|
|
||||||
factory_name (str): Name of the component factory.
|
factory_name (str): Name of the component factory.
|
||||||
name (str): Name of pipeline component. Overwrites existing
|
name (str): Name of pipeline component. Overwrites existing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user