1. Learn
  2. /
  3. Courses
  4. /
  5. Advanced NLP with spaCy

Exercise

Exploring the model

Let's see how the model performs on unseen data! To speed things up a little, here's a trained model for the label 'GADGET', using the examples from the previous exercise, plus a few hundred more. The loaded model is already available as the nlp object. A list of test texts is available as TEST_DATA.

Instructions 1/2

undefined XP
    1
    2
  • Process each text in TEST_DATA using nlp.pipe.
  • Print the document text and the entities in the text.