Challenge: Lemmatization
Swipe to start coding
You are given some text in text
variable. Tokenization is already completed with stop words filtered out. Your task is to lemmatize the resulting tokens. To do this:
- Import the WordNet lemmatizer.
- Download the WordNet corpus.
- Create a WordNet lemmatizer and save it in
lemmatizer
. - Lemmatize the tokens using list comprehension and save the result in
lemmatized_tokens
.
Do not specify parts of speech during lemmatization.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Awesome!
Completion rate improved to 3.45
Challenge: Lemmatization
Desliza para mostrar el menú
Swipe to start coding
You are given some text in text
variable. Tokenization is already completed with stop words filtered out. Your task is to lemmatize the resulting tokens. To do this:
- Import the WordNet lemmatizer.
- Download the WordNet corpus.
- Create a WordNet lemmatizer and save it in
lemmatizer
. - Lemmatize the tokens using list comprehension and save the result in
lemmatized_tokens
.
Do not specify parts of speech during lemmatization.
Solución
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 3.45single