In ancient Rome, public discourse happened at the Forum at the heart of the city. People gathered to exchange ideas and debate topics of social relevance. Today that public discourse has moved online to the digital forums of sites like Reddit, the microblogging arena of Twitter and other social media outlets. Perhaps as a researcher you are curious what people’s opinions are about a specific topic, or perhaps as an analyst you wish to study the effect of your company’s recent marketing campaign. Monitoring social media with sentiment analysis is a good way to gauge public opinion. Luckily, with Python there are many options available, and I will discuss the methods and tools I have experimented with, along with my thoughts about the experience.

On my learning journey, I started with the simplest option, TextBlob, and worked my way up to using transformers for deep learning with Pytorch and Tensorflow. If you are a beginner to Python and sentiment analysis, don’t worry, the next section provides background. Otherwise, feel free to skip ahead to my diagram below for a visual overview of the Python natural language processing (NLP) playground.

#machine-learning #nlp #python #social-media #sentiment-analysis

Sentiment Analysis of Social Media with Python
1.50 GEEK