Course Content
Introduction to NLP
Introduction to NLP
2. Stemming and Lemmatization
Challenge: Tokenizing a Sentence
Task
Swipe to show code editor
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
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 4
Challenge: Tokenizing a Sentence
Task
Swipe to show code editor
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
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below