Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Tagging | Identifying the Most Frequent Words in Text
Identifying the Most Frequent Words in Text

book
Tagging

Tagging involves assigning labels or tags to words in a text, identifying their part of speech. NLTK offers a range of taggers, notably the popular POS tagger.

Tarea

Swipe to start coding

  1. Download the part-of-speech tagger from NLTK.
  2. Perform part-of-speech tagging on the list of stemmed words.

Solución

# Download the part-of-speech tagger from NLTK
nltk.download("averaged_perceptron_tagger")

# Perform part-of-speech tagging on the stemmed words
nltk.pos_tag(stemmed_words)

Mark tasks as Completed
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 7
AVAILABLE TO ULTIMATE ONLY
some-alt