NLP Classification

Social_Media_Sentiment_Analysis.NLP_Classification.classify_tweets(data, print_output: bool = True)[source]

The Sentimental Analysis part of Twitter Indicator.

Parameters:
  • data (dict) – The Tweets.

  • print_output (str) – Print some details about each Tweets Sentiment Score.

Returns:

The Tweets with the Sentimental Score Added for each tweet and The Sentimental Score in a List.

Return type:

dict and list

Social_Media_Sentiment_Analysis.NLP_Classification.min_max(value, min, max)[source]

Take all the Sentiment Analysis Values and make it into one score.

Parameters:
  • value (float) – The Value you want to Min Max.

  • min (float) – The Minimum value for the Min Max Operation.

  • max (float) – The Maximum value for the Min Max Operation.

Returns:

The Min Maxed Value

Return type:

float

Social_Media_Sentiment_Analysis.NLP_Classification.tweet_score(sentimental_analysis_data)[source]

Take all the Sentiment Analysis Values and make it into one score.

Parameters:

sentimental_analysis_data (list) – The Sentimental Analysis Scores.

Returns:

The Final Score of the Sentimental Analysis Scores List.

Return type:

float

Social_Media_Sentiment_Analysis.NLP_Classification.twitter_indicator(data, print_output: bool = True)[source]

Take the Tweets and Apply Sentimental Analysis on them.

Parameters:
  • data (dict) – The Tweets.

  • print_output (str) – Print some details about each Tweets Sentiment Score.

Returns:

The Tweets with the Sentimental Score Added for each tweet and The Combined Sentimental Score.

Return type:

dict and float