Get startedGet started for free

Inspecting the pipeline

Let's inspect the small English model's pipeline!

This exercise is part of the course

Advanced NLP with spaCy

View Course

Exercise instructions

  • Load the en_core_web_sm model and create the nlp object.
  • Print the names of the pipeline components using nlp.pipe_names.
  • Print the full pipeline of (name, component) tuples using nlp.pipeline.

Hands-on interactive exercise

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

# Load the en_core_web_sm model
nlp = ____

# Print the names of the pipeline components
print(____.____)

# Print the full pipeline of (name, component) tuples
print(____.____)
Edit and Run Code