Sitemap
Better Programming

Advice for programmers.

How to Do Sentiment Analysis on a Twitter Account

Figure out ahead of time if this is a person you want to follow

8 min readFeb 4, 2020

--

Press enter or click to view image in full size

In this article, I’ll show you how to get and analyze the sentiment of tweets from a Twitter user using sentiment analysis.

“Sentiment analysis is the measurement of neutral, negative, and positive language. It is a way to evaluate spoken or written language to determine if the expression is favorable (positive), unfavorable (negative), or neutral, and to what degree.” — Clarabridge

“Sentiment analysis: the process of computationally identifying and categorizing opinions expressed in a piece of text, especially in order to determine whether the writer’s attitude towards a particular topic, product, etc. is positive, negative, or neutral.”— Oxford English Dictionary

There are many methods and algorithms to implement sentiment-analysis systems, which can be classified as:

  • Rule-based systems that perform sentiment analysis based on a set of manually crafted rules
  • Automatic systems that rely on machine learning techniques to learn from data
  • Hybrid systems that combine both rule-based and automatic approaches

--

--

Responses (4)