Fix docs (fix #8189)

This commit is contained in:
Paul O'Leary McCann 2021-05-24 19:47:30 +09:00
parent e0b0892ef2
commit 68ccfc4c39

View File

@ -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)