LoslegenKostenlos loslegen

Modelle laden

Lass uns damit beginnen, ein Modell zu laden. spacy ist bereits importiert.

Diese Übung ist Teil des Kurses

Fortgeschrittenes NLP mit spaCy

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Load the 'en_core_web_sm' model – spaCy is already imported
nlp = ____

text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value"

# Process the text
doc = ____

# Print the document text
print(____.____)
Code bearbeiten und ausführen