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
.
Cet exercice fait partie du cours
Advanced NLP with spaCy
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Process each text in TEST_DATA
for ____ in ____:
# Print the document text and entitites
print(____)
print(____, '\n\n')