Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Stemming | Stemming and Lemmatization
Introduction to NLP

Deslize para mostrar o menu

book
Challenge: Stemming

Tarefa

Swipe to start coding

You are given some text in text variable. Your task is to tokenize this text, remove the stop words, and apply stemming on tokens. To do this:

  1. Import Porter Stemmer.
  2. Convert text to lowercase and save it in text_lower.
  3. Tokenize the text_lower string and save the result in tokens.
  4. Load English stop words, convert them to set, and save in stop_words.
  5. Filter out the stop words using list comprehension and save the result in filtered_tokens.
  6. Create a Porter Stemmer and save it in stemmer.
  7. Stem the tokens using list comprehension and save the result in stemmed_tokens.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

Awesome!

Completion rate improved to 3.45

book
Challenge: Stemming

Tarefa

Swipe to start coding

You are given some text in text variable. Your task is to tokenize this text, remove the stop words, and apply stemming on tokens. To do this:

  1. Import Porter Stemmer.
  2. Convert text to lowercase and save it in text_lower.
  3. Tokenize the text_lower string and save the result in tokens.
  4. Load English stop words, convert them to set, and save in stop_words.
  5. Filter out the stop words using list comprehension and save the result in filtered_tokens.
  6. Create a Porter Stemmer and save it in stemmer.
  7. Stem the tokens using list comprehension and save the result in stemmed_tokens.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

close

Awesome!

Completion rate improved to 3.45

Deslize para mostrar o menu

some-alt