mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 19:08:06 +03:00
Fix comment
This commit is contained in:
parent
0c8393ef8e
commit
ef18829fd9
|
@ -771,12 +771,13 @@ class Language:
|
|||
raw_config: Optional[Config] = None,
|
||||
validate: bool = True,
|
||||
) -> PipeCallable:
|
||||
"""Add a component to the processing pipeline. Valid components are
|
||||
callables that take a `Doc` object, modify it and return it. 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
|
||||
to also pass an instance into spacy.load() to construct the pipeline.
|
||||
"""Add a component to the processing pipeline, by factory name and config.
|
||||
Valid components are callables that take a `Doc` object, modify it, and return it.
|
||||
Only one of before/after/first/last can be set. Default behaviour is "last".
|
||||
|
||||
Using this method tells spaCy how to construct your component, allowing you to load
|
||||
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.
|
||||
name (str): Name of pipeline component. Overwrites existing
|
||||
|
|
Loading…
Reference in New Issue
Block a user