Bir Doc oluşturma
Hadi, sıfırdan bazı Doc nesneleri oluşturalım! nlp nesnesi senin için zaten oluşturuldu.
Bu arada, henüz indirmediysen spaCy Kopya Kâğıdı'na göz at. En önemli kavram ve yöntemlerin bir özetini içeriyor ve hızlı bir hatırlatmaya ihtiyaç duyduğunda işine yarayabilir!
Bu egzersiz
spaCy ile İleri Düzey NLP
kursunun bir parçasıdırUygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Import the Doc class
from ____ import ____
# Desired text: "spaCy is cool!"
words = ['spaCy', 'is', 'cool', '!']
spaces = [True, True, False, False]
# Create a Doc from the words and spaces
doc = ____(____, words=words, spaces=spaces)
print(doc.text)