Challenge: Tokenization
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 3.45
Challenge: Tokenization
Свайпніть щоб показати меню
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 3.45Секція 1. Розділ 4
single