Challenge: Part of Speech Tagging
Task
Swipe to start coding
Your are given some text in text
variable. This text is already tokenized. Your task is to perform POS tagging and print the results as a DataFrame. To do this:
- Import the correct function for POS tagging.
- Download the model needed for NLTK's POS tagging.
- Perform POS tagging and save the results in
tagged_tokens
. - Convert the result to DataFrame (do NOT transpose it).
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.45
Challenge: Part of Speech Tagging
Swipe to show menu
Task
Swipe to start coding
Your are given some text in text
variable. This text is already tokenized. Your task is to perform POS tagging and print the results as a DataFrame. To do this:
- Import the correct function for POS tagging.
- Download the model needed for NLTK's POS tagging.
- Perform POS tagging and save the results in
tagged_tokens
. - Convert the result to DataFrame (do NOT transpose it).
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 3.45SectionΒ 2. ChapterΒ 6
single