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

Deslize para mostrar o menu

book
Challenge: Tokenization

Tarefa

Swipe to start coding

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:

  1. Import necessary functions.
  2. Tokenize text into sentences and save the result in sentences.
  3. Take the last sentence, convert it to lowercase, and save in last_sentence.
  4. Tokenize the last_sentence into words and save the result in tokens.

Use the nltk functions for this purpose.

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 4
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

Tarefa

Swipe to start coding

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:

  1. Import necessary functions.
  2. Tokenize text into sentences and save the result in sentences.
  3. Take the last sentence, convert it to lowercase, and save in last_sentence.
  4. Tokenize the last_sentence into words and save the result in tokens.

Use the nltk functions for this purpose.

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