Challenge: Tokenizing a Sentence
Swipe to start coding
Your task is to tokenize the given excerpt from 'The Adventures of the Musgrave Ritual' into sentences and then tokenize the last sentence into words. Use the nltk
functions for this purpose and use the negative index to retrieve the last sentence and convert this sentence to lowercase.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Tokenizing a Sentence
Swipe to show menu
Swipe to start coding
Your task is to tokenize the given excerpt from 'The Adventures of the Musgrave Ritual' into sentences and then tokenize the last sentence into words. Use the nltk
functions for this purpose and use the negative index to retrieve the last sentence and convert this sentence to lowercase.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 4.17single