Get startedGet started for free

Loading models

Let's start by loading a model. spacy is already imported.

This exercise is part of the course

Advanced NLP with spaCy

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Load the 'en_core_web_sm' model – spaCy is already imported
nlp = ____

text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value"

# Process the text
doc = ____

# Print the document text
print(____.____)
Edit and Run Code