Fix typo in code example (resolves #1556)

This commit is contained in:
ines 2017-11-13 08:29:16 +01:00
parent f0e28e8ae5
commit f2b6b98b75

View File

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