EmpezarEmpieza gratis

Cargar modelos

Empecemos cargando un modelo. spacy ya está importado.

Este ejercicio forma parte del curso

NLP avanzado con spaCy

Ver curso

ejercicio interactivo práctico

Prueba este ejercicio completando este código de ejemplo.

# 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(____.____)
Editar y ejecutar código