mickdif / gnews-Sentiment-Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gnews-Sentiment-Analysis

Sentiment analysis a partire di notizie da Google News tramite scraping e traduzione automatica

Fonte

https://github.com/ranahaani/GNews/blob/master

Esempio di output:

(testo primo articolo)

Sentiment(polarity=0.0, subjectivity=0.0)
Sentiment(polarity=0.0, subjectivity=0.0)
Sentiment(polarity=0.0, subjectivity=0.25)
Sentiment(polarity=0.20833333333333334, subjectivity=0.25)
Sentiment(polarity=-0.125, subjectivity=0.375)
Sentiment(polarity=0.0, subjectivity=0.0)
Sentiment(polarity=0.0, subjectivity=0.0)
...
Sentiment(polarity=0.20833333333333334, subjectivity=0.4375)
Sentiment(polarity=0.0, subjectivity=0.0)
Sentiment(polarity=0.0, subjectivity=0.0)
Tot. Polarity for Telecom italia is: 2.9071202897922963
The avg polarity is: 0.02997031226589996 ( Positive sentiment )
Tot. Subjectivity for Telecom italia is: 23.367128187959334
The avg polarity is: 0.2408982287418488 ( Objective sentiment )
on a number of tweets: 97

Figure_1

About


Languages

Language:Python 100.0%