Aan de slagGa gratis aan de slag

Inspecting the pipeline

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

Deze oefening maakt deel uit van de cursus

Advanced NLP with spaCy

Cursus bekijken

Oefeninstructies

  • 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.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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(____.____)
Code bewerken en uitvoeren