GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ht3886/TwitterSentimentAnalysis_Python: Sentiment analysis of tweets to extract frequently occurring positive and negative words

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
file_visualization.csv
file_visualization.csv
 
 
negative-words.txt
negative-words.txt
 
 
partA.csv
partA.csv
 
 
positive-words.txt
positive-words.txt
 
 
sentiment_analysis.py
sentiment_analysis.py
 
 

Repository files navigation

Overview

I have considered 1000 tweets for this project. I have fetched them from MongoDB locally, which I obtained in the previous assignment. I have considered only the messages or texts and ignored all other metadata. I have cleaned all the ‘RT’ from the tweets. Since I have considered the tweets that were already cleaned, therefore I have not performed any further cleaning. For creating bag of words for each tweet, I have created a separate function named “word_count”. The logic I have used is to first split each word from the sentence and then maintain their counts. For checking if words in the bag of words are positive or negative, I have obtained the list of positive and negative words from an online source. These files are to be placed in the project’s root directory. For displaying and tagging each tweet as either positive or negative, I have stored the output in a separate csv file named: partA.csv. Apart from tweet and polarity, I have also created separate columns for positive and negative words found in the respective tweet. If the number of positive and negative words are same, the tweet is considered to be neutral. For visualization, I have stored all the positive and negative words occurring in tweets in a separate csv file named: file_visualization.csv.

File description

  • sentiment_analysis.py: script file for sentiment analysis logic
  • partA.csv: csv file for results of sentiment analysis (tweet & polarity)
  • positive-words.txt: supporting file required for the program to run
  • negative-words.txt: supporting file required for the program to run
  • file_visualization.csv: file to used for visualization

About

Sentiment analysis of tweets to extract frequently occurring positive and negative words

Topics

bag-of-wordsmongodbnegativeneutralpositivepythonsentiment-analysistweepytwittertwitter-apivisualization

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.