Skip to content

MartaFatto/Hong-Kong-Debate

Repository files navigation

Hong-Kong-debate

Overview

Basic Twitter Data Analysis: Text Mining, Topic Modelling and Sentiment Analysis

This work tries to answer the following research questions by appling simple techniques of Text Mining, Topic Modelling and Sentiment Analysis on data retrieved through Twitter Web API (data extracted in July 2020, few days after the approval of the new National Security Law in Hong Kong).

1- Concerning Hong Kong, what are people discussing? Are they talking about the new National Security Law and its social, political and economic aspects?

2- Do people have polarized opinions about the topics?

Required libraries

The Code is written in R 4.0.3.

  • rtweet 0.7.0
  • ggplot2 3.3.3
  • wordcloud 2.6
  • tm 0.7.8
  • topicmodels 0.2.12
  • lubridate 1.7.9.2
  • SentimentAnalysis 1.3.3
  • quanteda 2.1.2
  • ggpubr 0.4.0
  • dplyr 1.0.3
  • tidytext 0.3.0

Author

Lincence

This work is available under the Creative Commons Attribution-ShareAlike License. Read more about this license from https://creativecommons.org/licenses/by-sa/3.0/.

Releases

No releases published

Packages

No packages published