mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +03:00
commit
6c67482f34
|
@ -17,10 +17,10 @@ p
|
|||
| trying to do.
|
||||
|
||||
+code.
|
||||
import spacy # See "Installing spaCy"
|
||||
nlp = spacy.load('en') # You are here.
|
||||
doc = nlp(u'Hello, spacy!') # See "Using the pipeline"
|
||||
print((w.text, w.pos_) for w in doc) # See "Doc, Span and Token"
|
||||
import spacy # See "Installing spaCy"
|
||||
nlp = spacy.load('en') # You are here.
|
||||
doc = nlp(u'Hello, spacy!') # See "Using the pipeline"
|
||||
print([(w.text, w.pos_) for w in doc]) # See "Doc, Span and Token"
|
||||
|
||||
+aside("Why do we have to preload?")
|
||||
| Loading the models takes ~200x longer than
|
||||
|
|
Loading…
Reference in New Issue
Block a user