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
.
Este exercício faz parte do curso
Advanced NLP with spaCy
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Process each text in TEST_DATA
for ____ in ____:
# Print the document text and entitites
print(____)
print(____, '\n\n')