Зміст курсу
Introduction to NLP
Introduction to NLP
Challenge: Stemming the Tokens
Swipe to show code editor
Your task is the following:
- Import Porter Stemmer.
- Convert
text
to lowercase. - Tokenize the
text
string. - Load English stop words.
- Filter out the stop words using list comprehension.
- Create a stemmer object.
- Stem the tokens using list comprehension.
Дякуємо за ваш відгук!
Challenge: Stemming the Tokens
Swipe to show code editor
Your task is the following:
- Import Porter Stemmer.
- Convert
text
to lowercase. - Tokenize the
text
string. - Load English stop words.
- Filter out the stop words using list comprehension.
- Create a stemmer object.
- Stem the tokens using list comprehension.
Дякуємо за ваш відгук!