mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 11:26:28 +03:00
Fix docs (fix #8189)
This commit is contained in:
parent
e0b0892ef2
commit
68ccfc4c39
|
@ -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
Block a user