mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +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
|
> ```python
|
||||||
> @Language.component("component")
|
> @Language.component("component")
|
||||||
> def component_func(doc):
|
> def component_func(doc):
|
||||||
> # modify Doc and return it return doc
|
> # modify Doc and return it
|
||||||
|
> return doc
|
||||||
>
|
>
|
||||||
> nlp.add_pipe("component", before="ner")
|
> nlp.add_pipe("component", before="ner")
|
||||||
> component = nlp.add_pipe("component", name="custom_name", last=True)
|
> component = nlp.add_pipe("component", name="custom_name", last=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user