Challenge: Lemmatization
Tarefa
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
Tudo estava claro?
Obrigado pelo seu feedback!