Inspecting the pipeline
Let's inspect the small English model's pipeline!
Diese Übung ist Teil des Kurses
Advanced NLP with spaCy
Anleitung zur Übung
- Load the
en_core_web_sm
model and create thenlp
object. - Print the names of the pipeline components using
nlp.pipe_names
. - Print the full pipeline of
(name, component)
tuples usingnlp.pipeline
.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# 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(____.____)