Skip to content

Analyzes sentiment from tweets related to Gaza using GroqCloud’s Llama-3 LLM model and Selenium for data collection. This project aims to provide insights into public sentiment and emotional tone regarding Gaza.

License

Notifications You must be signed in to change notification settings

WalidAlsafadi/TwitterSentiment-Llama3

Repository files navigation

Twitter Sentiment Analysis using LLM

Twitter

Project Context:

In this project, we aim to explore the sentiments and opinions of people in Gaza, as expressed on social media, specifically Twitter. The focus is to gather real-time tweets, process and clean the data, and perform sentiment analysis. The insights gained can help better understand the prevailing mood, attitudes, and general discourse around specific topics related to Gaza, including social, political, and humanitarian issues.

The project involves the use of the following technologies:

  • Twitter Scraping: Selenium is used to scrape real-time tweets, targeting specific hashtags and topics, due to limitations with paid APIs.
  • Data Cleaning: Python is employed to clean the scraped data by removing unwanted symbols, URLs, and filtering the text.
  • Sentiment Analysis and LLM Integration: Groq’s LLM, particularly the llama3-70b-8192 model, is integrated to conduct sentiment analysis and provide real-time question-answering capabilities on the collected tweets, enabling a deeper understanding of the data.

The goal is to provide meaningful insights into the feelings and reactions of individuals in Gaza based on public social media posts, which could support researchers, humanitarian organizations, and policymakers in understanding the sentiment landscape.

Key Components:

  1. Data Collection: Tweets are scraped using Selenium, focusing on specific hashtags and topics.
  2. Data Cleaning: Removing unwanted symbols, URLs, and filtering English texts to ensure clean and usable data.
  3. Sentiment Analysis & LLM Integration: Using Groq’s LLM to perform sentiment analysis and answer questions about the data simultaneously.
  4. Insights: The resulting sentiment analysis provides critical insights into public opinions, which could support researchers and humanitarian organizations.

About

Analyzes sentiment from tweets related to Gaza using GroqCloud’s Llama-3 LLM model and Selenium for data collection. This project aims to provide insights into public sentiment and emotional tone regarding Gaza.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published