Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Lemmatization with POS Tagging | Stemming and Lemmatization
Introduction to NLP

Desliza para mostrar el menú

book
Challenge: Lemmatization with POS Tagging

Tarea

Swipe to start coding

Your are given some text in text variable. Your task is to perform a lemmatization with pos tags on this text. To do this:

  1. Convert text to lowercase and save in text_lower.
  2. Tokenize the text_lower string and save the result in tokens.
  3. Load English stop words, convert them to set, and save in stop_words.
  4. Filter out the stop words using list comprehension and save the result in filtered_tokens.
  5. Perform POS tagging using the respective function and save the result in tagged_tokens.
  6. Create a WordNet Lemmatizer and save it in lemmatizer.
  7. Lemmatize the tokens taking their POS tags into account using list comprehension and save the result in lemmatized_tokens.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 8
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

Awesome!

Completion rate improved to 3.45

book
Challenge: Lemmatization with POS Tagging

Tarea

Swipe to start coding

Your are given some text in text variable. Your task is to perform a lemmatization with pos tags on this text. To do this:

  1. Convert text to lowercase and save in text_lower.
  2. Tokenize the text_lower string and save the result in tokens.
  3. Load English stop words, convert them to set, and save in stop_words.
  4. Filter out the stop words using list comprehension and save the result in filtered_tokens.
  5. Perform POS tagging using the respective function and save the result in tagged_tokens.
  6. Create a WordNet Lemmatizer and save it in lemmatizer.
  7. Lemmatize the tokens taking their POS tags into account using list comprehension and save the result in lemmatized_tokens.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

close

Awesome!

Completion rate improved to 3.45

Desliza para mostrar el menú

some-alt