Challenge: Part of Speech Tagging
Oppgave
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).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!