Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Tokenization | Text Preprocessing Fundamentals
Introduction to NLP

Свайпніть щоб показати меню

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

  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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

Awesome!

Completion rate improved to 3.45

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

  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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

close

Awesome!

Completion rate improved to 3.45

Свайпніть щоб показати меню

some-alt