Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

ammarnasr/arabic-polarization-twitter

Domain:

natural language processingpeace and security

Record type:

software
Creator:
amm
Host:
This repository contains tools and scripts for analyzing Arabic Twitter discussions about the civil war in Sudan. It includes data collection methods, preprocessing steps, machine learning models for tweet classification, and analysis tools for understanding public opinion and geopolitical narratives. # Twitter Polarization Analysis Toolkit This repository contains tools and scripts for analyzing Arabic Twitter discussions about the civil war in Sudan. It includes data collection methods, preprocessing steps, machine learning models for tweet classification, and analysis tools for understanding public opinion and geopolitical narratives. ## Repostiry Contents The repository is organized as follows: ``` ../ ├── data/ │ ├── cleaned_data.csv │ ├── combined_reports_with_preds_final.parquet │ └── data.xlsx ├── embeddings/ │ └── labelled_embeddings.parquet ├── LICENSE ├── logs/ │ └── stratified_logs.pth ├── models/ │ ├── clf_anti peace.pth │ ├── clf_Pro peace,.pth │ ├── clf_RSF.pth │ └── clf_SAF.pth ├── notebooks/ │ ├── 01_data_preprocessing.ipynb │ ├── 02_model_training.ipynb │ ├── 03_evaluation.ipynb │ └── 04_analysis_visualization.ipynb ├── plots/ │ ├── binary_labels_counts_per_month.html │ ├── binary_labels_counts_per_month_seaborn.png │ └── labels_counts_percentage.html └── reports/ ├── Report 1.xlsx ├── Report 2.xlsx ├── Report 3.xlsx ├── Report 4.xlsx └── Report 5.xlsx ``` ### Data The data folder contains the following files: - `data.xlsx`: The Labelled 900 tweets dataset. - `cleaned_data.csv`: The cleaned dataset after preprocessing. - `combined_reports_with_preds_final.parquet`: The final dataset after merging the reports with the predictions. All the reports 1-5 are in the reports folder. ### Embeddings The embeddings folder contains the following files: - `labelled_embeddings.parquet`: The OpenAI GPT-3 embeddings for the labelled dataset. The embeddings are in dataframe format with the tweet text crossponding to the embeddings. Embeddings are used for training the Classification models and the model_training notebook have code to get the embeddings from the OpenAI API. ### Logs The logs folder contains the following files: - `stratified_logs.pth`: The logs for the stratified KFold cross-validation for the classification …

Visit

github.com

Tasks

text classification

Licenses

MIT

Similar

Content and Network Dynamics Behind Egyptian Political Polarization on TwitterArabic Offensive Language on Twitter: Analysis and ExperimentsBenchmarking sentiment analysis of algerian arabic dialect on X (Twitter)Leveraging AraBERT for COVID-19 event monitoring on Arabic TwitterIngGOHOUEDE/PolarizationThe Arab Spring and Social Media Audiences: English and Arabic Twitter Users and Their Networks

Content and Network Dynamics Behind Egyptian Political Polarization on Twitter

There is little doubt about whether social networks play a role in modern protests. This agreement h

Arabic Offensive Language on Twitter: Analysis and Experiments

Detecting offensive language on Twitter has many applications ranging from detecting/predicting bull

Benchmarking sentiment analysis of algerian arabic dialect on X (Twitter)

Leveraging AraBERT for COVID-19 event monitoring on Arabic Twitter

Purpose The outbreak of COVID-19 has posed a significant public health threat, prompting the need f

IngGOHOUEDE/Polarization

Repository for a comparative study of transformer-based models (BERT, RoBERTa, DeBERTa, mBERT, AfroX

The Arab Spring and Social Media Audiences: English and Arabic Twitter Users and Their Networks

Although popular media narratives about the role of social media in driving the events of the 2011 "