Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Stop Words | Text Preprocessing Fundamentals
Introduction to NLP

Deslize para mostrar o menu

book
Challenge: Stop Words

Tarefa

Swipe to start coding

You are given some text in text variable. Your task is to tokenize it and remove the stop words. To do this:

  1. Import necessary components.
  2. Convert it to lowercase and save in text_lower.
  3. Load the English stop words list from nltk, convert it to a set, and save it in stop_words.
  4. Tokenize the text_lower string using the word_tokenize() function and save the result in tokens.
  5. Filter out the stop words from tokens using list comprehension and save the result in tokens_clean.

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 1. Capítulo 8
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: Stop Words

Tarefa

Swipe to start coding

You are given some text in text variable. Your task is to tokenize it and remove the stop words. To do this:

  1. Import necessary components.
  2. Convert it to lowercase and save in text_lower.
  3. Load the English stop words list from nltk, convert it to a set, and save it in stop_words.
  4. Tokenize the text_lower string using the word_tokenize() function and save the result in tokens.
  5. Filter out the stop words from tokens using list comprehension and save the result in tokens_clean.

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