セクション 1. 章 4
single
Challenge: Tokenization
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Your are given an excerpt from 'The Adventures of the Musgrave Ritual' in text variable. You need to tokenize the last sentence. To do this:
- Import necessary functions.
- Tokenize
textinto sentences and save the result insentences. - Take the last sentence, convert it to lowercase, and save in
last_sentence. - Tokenize the
last_sentenceinto words and save the result intokens.
Use the nltk functions for this purpose.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 4
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください