Loading a Model and Processing a Doc
Run text through nlp() in one call.
Install First
Before you load anything, you download a model once. The en_core_web_sm model is small, fast, and perfect for getting started.
python -m spacy download en_core_web_smLoad the Model
You bring spaCy to life with spacy.load. It reads the model from disk and hands you an nlp object ready to process text.
import spacy
nlp = spacy.load("en_core_web_sm")All lessons in this course
- Why spaCy for Real Projects
- Loading a Model and Processing a Doc
- Tokens, Spans, and Doc Objects
- Customizing the Pipeline