Inspecting the pipeline
Let's inspect the small English model's pipeline!
Latihan ini adalah bagian dari kursus
Advanced NLP with spaCy
Petunjuk latihan
- Load the
en_core_web_smmodel and create thenlpobject. - Print the names of the pipeline components using
nlp.pipe_names. - Print the full pipeline of
(name, component)tuples usingnlp.pipeline.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# 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(____.____)