mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Fix typo in code example (resolves #1556)
This commit is contained in:
parent
f0e28e8ae5
commit
f2b6b98b75
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user