mirror of https://github.com/explosion/spaCy.git
Fix docs (fix #8189)
This commit is contained in:
parent
202943bc8c
commit
0c553ecd4e
|
@ -426,7 +426,8 @@ component, adds it to the pipeline and returns it.
|
|||
> ```python
|
||||
> @Language.component("component")
|
||||
> def component_func(doc):
|
||||
> # modify Doc and return it return doc
|
||||
> # modify Doc and return it
|
||||
> return doc
|
||||
>
|
||||
> nlp.add_pipe("component", before="ner")
|
||||
> component = nlp.add_pipe("component", name="custom_name", last=True)
|
||||
|
|
Loading…
Reference in New Issue