セクション 1. 章 8
single
Challenge: Stop Words
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given some text in text variable. Your task is to tokenize it and remove the stop words. To do this:
- Import necessary components.
- Convert it to lowercase and save in
text_lower. - Load the English stop words list from
nltk, convert it to aset, and save it instop_words. - Tokenize the
text_lowerstring using theword_tokenize()function and save the result intokens. - Filter out the stop words from
tokensusing list comprehension and save the result intokens_clean.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 8
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください