Fix typo in code example (resolves
@@ -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.")
