Charger des modèles
Commençons par charger un modèle. spacy est déjà importé.
Cet exercice fait partie du cours
NLP avancé avec spaCy
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# 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(____.____)