Text Sentiment Analysis
Now that we have prepared our data to be finally classified we will rely on a famous Python library called TextBlob
. This package allows us to perform a sentiment analysis for any given text.
Oppgave
Swipe to start coding
- Import the
TextBlob
package. - Experiment with your own
text
and see the score (sentiment
) that is returned. - Print out the result.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 10
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 9.09
Text Sentiment Analysis
Now that we have prepared our data to be finally classified we will rely on a famous Python library called TextBlob
. This package allows us to perform a sentiment analysis for any given text.
Oppgave
Swipe to start coding
- Import the
TextBlob
package. - Experiment with your own
text
and see the score (sentiment
) that is returned. - Print out the result.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 10