mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +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
|
return doc
|
||||||
|
|
||||||
nlp = spacy.load('en')
|
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']
|
print(nlp.pipe_names) # ['print_info', 'tagger', 'parser', 'ner']
|
||||||
doc = nlp(u"This is a sentence.")
|
doc = nlp(u"This is a sentence.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user