From f2b6b98b75a5fcdeacd72f3305cb5ff1d17e3145 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 13 Nov 2017 08:29:16 +0100 Subject: [PATCH] Fix typo in code example (resolves #1556) --- website/usage/_processing-pipelines/_custom-components.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/usage/_processing-pipelines/_custom-components.jade b/website/usage/_processing-pipelines/_custom-components.jade index d2100b5cd..71e88ca3d 100644 --- a/website/usage/_processing-pipelines/_custom-components.jade +++ b/website/usage/_processing-pipelines/_custom-components.jade @@ -39,7 +39,7 @@ p return doc nlp = spacy.load('en') - nlp.pipeline.add_pipe(my_component, name='print_info', first=True) + nlp.add_pipe(my_component, name='print_info', first=True) print(nlp.pipe_names) # ['print_info', 'tagger', 'parser', 'ner'] doc = nlp(u"This is a sentence.")