Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Sentiment Analysis and Wordcloud Twitter Data #1626

Closed
SKG24 opened this issue Nov 8, 2024 · 2 comments
Closed

Title: Sentiment Analysis and Wordcloud Twitter Data #1626

SKG24 opened this issue Nov 8, 2024 · 2 comments
Labels
Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates. gssoc-ext This level is for GSSOC-Extended. invalid You either opened a PR without an issue or the files aren't appropriate.

Comments

@SKG24
Copy link
Contributor

SKG24 commented Nov 8, 2024

Initiative (Required)

GSSoC (Girl Script Summer of Code) 🌸

Is your feature request related to a problem? Please describe.

The objective of this code is to perform sentiment analysis on Twitter data related to Apple, represented by tweets in a CSV file. The tasks involve reading, cleaning, and structuring the textual data for processing, and then extracting meaningful insights. This involves creating a word cloud to visualize the most frequent words, building a Term Document Matrix (TDM) to quantify word occurrences, and performing sentiment analysis to categorize the emotional tone of each tweet. By identifying and analyzing sentiments like anger, joy, and sadness, as well as visualizing word frequencies, the analysis aims to understand the general public sentiment towards Apple as conveyed on Twitter.

Describe the solution you'd like.

The code starts by reading in the Twitter data, creating a "corpus" (text collection) for text mining, and performing a series of cleaning operations—converting text to lowercase, removing punctuation, numbers, URLs, stopwords, and irrelevant terms specific to Apple, like "AAPL." A Term Document Matrix is then created, enabling structured analysis of word frequencies. Using the wordcloud package, a word cloud is generated to visualize the most frequently used words. For sentiment analysis, the syuzhet package is utilized, which applies the NRC Emotion Lexicon to assign sentiment scores to each tweet, classifying them into emotions such as anger and joy. The results are visualized in a bar plot, showing the prevalence of each sentiment in the dataset, thus helping to derive a comprehensive view of public opinion around Apple on Twitter.

Add any other context or screenshots about the feature request here.

Screenshot 2024-11-08 at 3 21 39 PM
Screenshot 2024-11-08 at 3 21 48 PM
Screenshot 2024-11-08 at 3 25 11 PM

Copy link

github-actions bot commented Nov 8, 2024

@SKG24

It's great having you contribute to this project

Thanks for opening this Issue 🙌 , Welcome to Project Guidance 💖 We will review everything and get back to you.
Make sure to give a star to this repo before making a fork! Thank you :)

@Kushal997-das Kushal997-das added invalid You either opened a PR without an issue or the files aren't appropriate. gssoc-ext This level is for GSSOC-Extended. Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates. labels Nov 8, 2024
Copy link

github-actions bot commented Nov 8, 2024

Hi @SKG24 👋, your issue #1626 has been successfully closed ✅. Thank you for your valuable contribution! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates. gssoc-ext This level is for GSSOC-Extended. invalid You either opened a PR without an issue or the files aren't appropriate.
Projects
None yet
Development

No branches or pull requests

2 participants