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!
Seksjon 2. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 3.45
Challenge: Part of Speech Tagging
Sveip for å vise menyen
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!
Awesome!
Completion rate improved to 3.45Seksjon 2. Kapittel 6
single