https://github.com/siddharthck/twitter-sentiment-analysis
analyse sentiment of a tweet as negative or positive. Create a word corpus about a hashtag
https://github.com/siddharthck/twitter-sentiment-analysis
data-science r sentiment-analysis wordcloud
Last synced: 6 months ago
JSON representation
analyse sentiment of a tweet as negative or positive. Create a word corpus about a hashtag
- Host: GitHub
- URL: https://github.com/siddharthck/twitter-sentiment-analysis
- Owner: siddharthck
- Created: 2020-11-22T10:32:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-22T10:56:11.000Z (over 5 years ago)
- Last Synced: 2024-12-30T01:34:09.784Z (over 1 year ago)
- Topics: data-science, r, sentiment-analysis, wordcloud
- Language: R
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# twitter-sentiment-analysis and word corpus using R
analyse sentiment of a tweet as negative or positive.
you need twitter developer account credentials. we are going to use twitter-dev API.
after getting credentials store them in text file.
first : word corpus
word corpus is like word cloud consisting of diffrent words about a topic (or a #hashtag). bigger the word in size, higher the ocurancce of word about that #hashtag.
Second : twitter sentiment analysis
we have created bag of words. positivewords.txt and negative-words.txt
we search tweets by a key-word, parse all the tweets and analyze every word (of course not including stop-words).
if there are 5 negative words, and 2 positive, tweet's net polarity is negative with intensity 5/7.
how to execute? :
run the uploaded R script in rstudio if posibble. if exeuted line by line, it would be better for understanding.