https://github.com/cltl-students/eva_zegelaar_emotion_classification_dutch_political_tweets

CNN-BiLSTM and simple SVM to classify Dutch tweets written by members of the Dutch parliament into emotion categories, binary purpose categories and basic polarity categories.

https://github.com/cltl-students/eva_zegelaar_emotion_classification_dutch_political_tweets

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

CNN-BiLSTM and simple SVM to classify Dutch tweets written by members of the Dutch parliament into emotion categories, binary purpose categories and basic polarity categories.

Basic Info
  • Host: GitHub
  • Owner: cltl-students
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 2.21 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 6 years ago · Last pushed almost 6 years ago

https://github.com/cltl-students/Eva_Zegelaar_Emotion_Classification_Dutch_Political_Tweets/blob/master/

# READ ME

This forms part of my master thesis for the Text Mining Linguistics Master at the VU. 

Here, a CNN-BiLSTM and a simple SVM is used to classify Dutch tweets written by members of the Dutch parliament into emotion categories (6 labels), binary purpose categories (2 labels) and basic polarity categories (3 labels). 

The baseline SVM resulted in a highest f1-score of 0.59 with polarity labels (positive, negative, neutral). The CNN-BiLSTM performed very low in all other categories as it needs more training data. More information on the system performance can be found in the written thesis ('Eva_Zegelaar_Thesis_Report.pdf'). 

# Thesis Report
Eva_Zegelaar_Thesis_Report.pdf


# Data
In the 'Data' folder you can find the excel file 'gold.xlsx' with the training and test data containing all the gold annotations. The data can also be found in the folders containing the systems. 

Gathering and annotating the data was part of this thesis project. The provided excel file contains the 'most correct' labels of my agreement study. More information on this agreement study can be found in Chapter 3  of the thesis report in the file 'Eva_Zegelaar_Thesis_Report.pdf'. 

# Systems
2 Folders named: 'Main_CNN_BiLSTM'  & 'Baseline_SVM'. 

In each folder you can find one jupyter notebook containing the code and the data for system input. 

# Additional Folders
Folder 'Pipeline-for-Internship-Red-Data', contains the final pipeline for Red Data (my internship company) in a .py file. This .py file contains the two better performing systems (SVM polarity labels and SVM proactivity labels) and outputs a JSON file containing the tweets with the corresponding labels. 

Folder 'Initial preprocessing' contains a notebook to preprocess the initial raw tweets. 

# Resources
Word Embeddings:

Due to the large size, the open-source pre-trained Dutch word embeddings were not uploaded here. However, to be able to run the CNN-BiLSTM, you need those word embeddings. These can be downloaded from the following github page: https://github.com/coosto/dutch-word-embeddings.


# References

A. Nieuwenhuisje. Open-source dutch word embeddings, Jul 2018a. URL https://www.linkedin.com/pulse/open-source-dutch-word-embeddings-alexander-nieuwenhuijse/.

A. Nieuwenhuisje. dutch-word-embeddings. Jul 2018b. URL https://github.com/ coosto/dutch-word-embeddings.

S. Dandge. saitejdandge/sentimentalanalysislstmconv1d,Feb2019. https://github.com/saitejdandge/Sentimental_Analysis_LSTM_Conv1D

Kaggle. Lstm with word2vec embeddings, Apr 2017. URL https://www.kaggle.com/lystdo/lstm-with-word2vec-embeddings.

Keras. Keras documentation: Bidirectional lstm on imdb, May 2020. URL https://keras.io/examples/nlp/bidirectional_lstm_imdb/.

Z.-X. Liu, D.-G. Zhang, G.-Z. Luo, M. Lian, and B. Liu. A new method of emotional analysis based on cnnbilstm hybrid neural network. Cluster Computing, Mar 2020. 10.1007/s10586-020-03055-9.

Owner

  • Name: Computational Lexicology and & Terminology Lab
  • Login: cltl-students
  • Kind: organization
  • Email: p.t.j.m.vossen@vu.nl
  • Location: Amsterdam

Thesis and student projects @cltl

GitHub Events

Total
Last Year