BaşlayınÜcretsiz Başlayın

Processing data with context

In this exercise, you'll be using custom attributes to add author and book meta information to quotes.

A list of (text, context) examples is available as the variable DATA. The texts are quotes from famous books, and the contexts dictionaries with the keys 'author' and 'book'. The nlp object has already been created for you.

Bu egzersiz

Advanced NLP with spaCy

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import the Doc class
from _____ import ____

# Register the Doc extension 'author' (default None)
____

# Register the Doc extension 'book' (default None)
____
Kodu Düzenle ve Çalıştır