Course Content
Introduction to NLP
Introduction to NLP
2. Stemming and Lemmatization
Challenge: Tokenizing Using Regex
Task
Swipe to show code editor
Given a string named message
, convert it lowercase, then tokenize it into words using regular expression tokenization and the corresponding nltk
class. A word is a sequence of only alphanumeric characters (letters and numbers). '#Conference2023!'
, for example, contains one word: Conference2023
.
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 6
Challenge: Tokenizing Using Regex
Task
Swipe to show code editor
Given a string named message
, convert it lowercase, then tokenize it into words using regular expression tokenization and the corresponding nltk
class. A word is a sequence of only alphanumeric characters (letters and numbers). '#Conference2023!'
, for example, contains one word: Conference2023
.
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 6
Switch to desktop for real-world practiceContinue from where you are using one of the options below