セクション 1. 章 6
single
Challenge: Tokenization with Regex
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given a message in message variable. You have to tokenize it into words using regex. To do this:
- Import necessary class.
- Convert
messageto lowercase and save inmessage_lower. - Create a Regexp Tokenizer with correct pattern and save it in
word_tokenizer. - Tokenize
message_lowerinto words usingword_tokenizer.
A word is a sequence of alphanumeric characters and underscores. '#NLPConference_20!', for example, contains one word: NLPConference_20.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください