Coder Social home page Coder Social logo

wbgalvao / israel_palestine_tweets_analysis Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 796 KB

Sentiment Analysis on tweets about the latest conflict in Gaza Strip ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡ธ

License: MIT License

Jupyter Notebook 100.00%

israel_palestine_tweets_analysis's Introduction

Sentiment Analysis on tweets about the latest conflict in Gaza Strip ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ต๐Ÿ‡ธ

python_version Ruff license

Taking into account opinions and statements about the most recent conflict in Gaza Strip published on Twitter X, along with the advances in the development of deep learning models capable of performing textual categorization, this work developed a series of experiments that we to evaluate the performance of these approaches in the task of evaluating support bias (pro-Israel and pro-Palestine) in tweets published in X about the war between Israel and Hamas.

pro_israel_tweet_example pro_palestine_tweet_example

Dataset ๐Ÿ—„๏ธ

To carry out the training and evaluation of the sentiment analysis models, 220 tweets were collected on X published from October 7, 2023, whose content discusses the war between Israel and Hamas. These tweets were labeled according to their support bias into pro-Israel and pro-Palestine. For ethical reasons, texts mentioning support for Hamas' terrorist actions were not added to the dataset.

Messages in support of Israel in the conflict were mostly collected from:

Messages in support of Palestine in the conflict were mostly collected from:

After collecting and labeling the tweets, the dataset was then divided between the training set and the test set in a proportion of 90% and 10% respectively.

Augmentation with nplaug

Due to pricing changes in X's API the data was collected manually, so to increase the dataset size nplpaug was used - specifically the ContextualWordEmbsAug augmenter with BERT.

Both original and augmented dataset are available in the data directory.

Environment ๐Ÿž๏ธ

This project essentially uses Tensorflow. So if you want to run it locally, an environment with python's data science base packages (numpy, pandas, scikit-learn and matplotlib) and Tensorflow should be enough. Unless you're also trying to run the data augmentation then you should follow nlpaug installation instructions (that would require PyTorch and transformers and to locally download BERT).

israel_palestine_tweets_analysis's People

Contributors

wbgalvao avatar

Stargazers

Madiha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.