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:
- Import necessary functions.
- Tokenize
text
into sentences and save the result insentences
. - Take the last sentence, convert it to lowercase, and save in
last_sentence
. - Tokenize the
last_sentence
into words and save the result intokens
.
Use the nltk
functions for this purpose.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 3.45
Challenge: Tokenization
Deslize para mostrar o menu
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:
- Import necessary functions.
- Tokenize
text
into sentences and save the result insentences
. - Take the last sentence, convert it to lowercase, and save in
last_sentence
. - Tokenize the
last_sentence
into words and save the result intokens
.
Use the nltk
functions for this purpose.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Awesome!
Completion rate improved to 3.45Seção 1. Capítulo 4
single