Challenge: Tokenization
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 4
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 3.45
Challenge: Tokenization
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 3.45Sección 1. Capítulo 4
single