Challenge: Lemmatization
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Vat dit hoofdstuk samen
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.45
Challenge: Lemmatization
Veeg om het menu te tonen
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 3.45Sectie 2. Hoofdstuk 4
single