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

Pyyhkäise näyttääksesi valikon

book
Challenge: Stop Words

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 8
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

Awesome!

Completion rate improved to 3.45

book
Challenge: Stop Words

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

close

Awesome!

Completion rate improved to 3.45

Pyyhkäise näyttääksesi valikon

some-alt