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

Deslize para mostrar o menu

book
Challenge: Tokenization with Regex

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

Awesome!

Completion rate improved to 3.45

book
Challenge: Tokenization with Regex

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

close

Awesome!

Completion rate improved to 3.45

Deslize para mostrar o menu

some-alt