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

Svep för att visa menyn

book
Challenge: Stop Words

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 8
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

Awesome!

Completion rate improved to 3.45

book
Challenge: Stop Words

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

close

Awesome!

Completion rate improved to 3.45

Svep för att visa menyn

some-alt