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

Svep för att visa menyn

book
Challenge: Tokenization with Regex

Uppgift

Swipe to start coding

You are given a message in message variable. You have to tokenize it into words using regex. To do this:

  1. Import necessary class.
  2. Convert message to lowercase and save in message_lower.
  3. Create a Regexp Tokenizer with correct pattern and save it in word_tokenizer.
  4. Tokenize message_lower into words using word_tokenizer.

A word is a sequence of alphanumeric characters and underscores. '#NLPConference_20!', for example, contains one word: NLPConference_20.

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 6
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: Tokenization with Regex

Uppgift

Swipe to start coding

You are given a message in message variable. You have to tokenize it into words using regex. To do this:

  1. Import necessary class.
  2. Convert message to lowercase and save in message_lower.
  3. Create a Regexp Tokenizer with correct pattern and save it in word_tokenizer.
  4. Tokenize message_lower into words using word_tokenizer.

A word is a sequence of alphanumeric characters and underscores. '#NLPConference_20!', for example, contains one word: NLPConference_20.

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