Contenido del Curso
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.
¡Gracias por tus comentarios!
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.
¡Gracias por tus comentarios!