Complete the code to install spaCy using pip.
pip [1] spacyTo install spaCy, you use the command pip install spacy.
Complete the code to download the English small model for spaCy.
python -m spacy [1] en_core_web_smTo get a spaCy model, you run python -m spacy download en_core_web_sm.
Fix the error in the code to load the spaCy English model.
import spacy nlp = spacy.[1]('en_core_web_sm')
To use a spaCy model in code, you call spacy.load() with the model name.
Fill both blanks to create a spaCy pipeline and process text.
import spacy nlp = spacy.[1]('en_core_web_sm') doc = nlp([2])
First, load the model with spacy.load(). Then pass a string like 'Hello world!' to the model to process text.
Fill all three blanks to extract tokens from text using spaCy.
import spacy nlp = spacy.[1]('en_core_web_sm') doc = nlp([2]) tokens = [token.[3] for token in doc]
Load the model with load, pass a string to process, and get token text with token.text.
