Challenge: Lemmatization
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.45
Challenge: Lemmatization
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 3.45SectionΒ 2. ChapterΒ 4
single