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.
Taak
Swipe to start coding
- Download the part-of-speech tagger from NLTK.
- Perform part-of-speech tagging on the list of stemmed words.
Oplossing
9
1
2
3
4
5
# 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
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 7
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.