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

Desliza para mostrar el menú

book
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:

  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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

Awesome!

Completion rate improved to 3.45

book
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:

  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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

close

Awesome!

Completion rate improved to 3.45

Desliza para mostrar el menú

some-alt