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.
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 3.45
Challenge: Lemmatization
Deslize para mostrar o menu
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.
Solução
Obrigado pelo seu feedback!
Awesome!
Completion rate improved to 3.45single