Political Sentiment Analysis of Persian Tweets Using CNN-LSTM Model

Mohammad Dehghani, Zahra Yazdanparast
7/15/2023
cs.CLcs.IR

No official code found. Best implementation: abdulfatir/twitter-sentiment-analysis (1,653 stars, MIT, TensorFlow, last commit 2023-02-27).

Abstract

Sentiment analysis is the process of identifying and categorizing people's emotions or opinions regarding various topics. The analysis of Twitter sentiment has become an increasingly popular topic in recent years. In this paper, we present several machine learning and a deep learning model to analysis sentiment of Persian political tweets. Our analysis was conducted using Bag of Words and ParsBERT for word representation. We applied Gaussian Naive Bayes, Gradient Boosting, Logistic Regression, Decision Trees, Random Forests, as well as a combination of CNN and LSTM to classify the polarities of tweets. The results of this study indicate that deep learning with ParsBERT embedding performs better than machine learning. The CNN-LSTM model had the highest classification accuracy with 89 percent on the first dataset and 71 percent on the second dataset. Due to the complexity of Persian, it was a difficult task to achieve this level of efficiency. The main objective of our research was to reduce the training time while maintaining the model's performance. As a result, several adjustments were made to the model architecture and parameters. In addition to achieving the objective, the performance was slightly improved as well.

View on arXivView PDF

Code Implementations(1)

TensorFlowMIT

Sentiment analysis on tweets using Naive Bayes, SVM, CNN, LSTM, etc.

1,653600PythonOct 8, 20173 years agoMIT
cnndeeplearningkeraslstmmachine-learning+3 more

Similar Papers

Cite this paper

@article{dehghani2023political,
  title  = {Political Sentiment Analysis of Persian Tweets Using CNN-LSTM Model},
  author = {Mohammad Dehghani and Zahra Yazdanparast},
  year   = {2023},
  eprint = {2307.07740},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07740v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.07740.svg)](https://codeofpaper.com/paper/2307.07740)

Discussion