Skip to content
This repository was archived by the owner on Jul 20, 2021. It is now read-only.

Mins0o/PANicDEMIC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my fork of our NLP372 project. These are the links to the contributors' GitHubs.
Mai Tung Duong
Assem Zhunis
Ern Chern
Nguyen Khanh Thi
Minsoo Kang(강민수)

If you want to run our classifier, you'll need to get datas from Kaggle. (If the data is not available, please contact me.)

The main code you should use is the pipeline.py, but you might need to adjust classifier.py and extractor.py

Datafile should be in the same level with the directory (or you can change the path to your file)

PANicDEMIC

Detecting Emotions on COVID-19 Over Time Using NLP

Building classifier:

Emotional words extractor:

Dataset: twitter_crosstab.csv, downloaded from saifmohammad.com

Labeled tweets in 4 emotion categories: anger, fear, joy, sadness

Extractor: return scored features based on Bayesian posterior probability

Model: bag-of-word, Tf-idf vectorization

Accuracy: ~80%

Cause extractor:

Vectorization: Word2vec

Cluster: K-mean

Feedback:

Presentation video:

Watch the video

Results:

Anger is dominant in emotions on COVID-19. The main sources of anger may lie in the government response and policies. However,further investigation is needed to support our hypothesis. The next step may include classifying results by location and analyzing not only news titles but also the content of the news. In this case, building a news-specific model may be required. Overall, by using a simple and interpretable model in Python and NLTK, our project may contribute in providing an insight to take into account the mental state of the country, while imposing some policies and setting recovery strategies during hard times of the pandemic.

About

Detecting Emotions on COVID-19 Across the Countries Over Time Using NLTK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.9%
  • Shell 0.1%