Skip to content

Joe Biden Inauguration speech. Sentiments analyzed with NLP

Notifications You must be signed in to change notification settings

pablo-ferro/NLP_Biden_speech

Repository files navigation

NLP Biden speech

President Joe Biden Inauguration speech. Sentiments analyzed with NLP

Biden Speech Photo

Every quote has been analyzed by two definitions:

  • Polarity (going from +1 to -1)
  • Subjectivity (from 0 to 1).
  • An extra analysis using Naive Bayes method, that returns 3 values: pos or neg, pos value and neg value.

To use the Naive Bayes analyzer, we need TextBlob and NLTK:

from textblob.sentiments import NaiveBayesAnalyzer
import nltk
nltk.download('movie_reviews')
nltk.download('punkt')

Also, trying to create some visualizations about the words, a visual analysis simple for users.