MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Advanced NLP with spaCy

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Process each text in TEST_DATA
for ____ in ____:
    # Print the document text and entitites
    print(____)
    print(____, '\n\n')
Edit dan Jalankan Kode