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.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Awesome!
Completion rate improved to 3.45
Challenge: Lemmatization
Swipe to show 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.
Solution
Thanks for your feedback!
single