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.
Tehtävä
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.
Ratkaisu
Mark tasks as Completed
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 10
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Kysy minulta kysymyksiä tästä aiheesta
Tiivistä tämä luku
Näytä käytännön esimerkkejä
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.
Tehtävä
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.
Ratkaisu
Mark tasks as Completed
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 10