From 0c553ecd4eaeedffb0ff4445100ad2c4b9a113a8 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Mon, 24 May 2021 19:47:30 +0900 Subject: [PATCH] Fix docs (fix #8189) --- website/docs/api/language.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/api/language.md b/website/docs/api/language.md index ca87cbb16..b09ae1aa2 100644 --- a/website/docs/api/language.md +++ b/website/docs/api/language.md @@ -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)