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
.
Diese Übung ist Teil des Kurses
Advanced NLP with spaCy
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Process each text in TEST_DATA
for ____ in ____:
# Print the document text and entitites
print(____)
print(____, '\n\n')