0PricingLogin
NLP Academy · Lesson

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_sm

Load 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

  1. Why spaCy for Real Projects
  2. Loading a Model and Processing a Doc
  3. Tokens, Spans, and Doc Objects
  4. Customizing the Pipeline
← Back to NLP Academy