https://github.com/331dala/sentiment_analysis
write describe afterward
https://github.com/331dala/sentiment_analysis
jupyter-notebook nlp nltk python
Last synced: about 15 hours ago
JSON representation
write describe afterward
- Host: GitHub
- URL: https://github.com/331dala/sentiment_analysis
- Owner: 331Dala
- Created: 2025-04-01T07:28:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-03T13:41:39.000Z (over 1 year ago)
- Last Synced: 2025-10-27T00:26:14.247Z (8 months ago)
- Topics: jupyter-notebook, nlp, nltk, python
- Language: Jupyter Notebook
- Homepage:
- Size: 378 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sentiment_analysis
## Description
Analysis the sentiment from Tweet, on US Election 2020.
### For the download Dataset code, which be commented out in **main-Copy1.ipynb**:
Finally, I don't have permission to access the X endpoint.
I guess It's because industry attach importance to the data which they have.
Another reason may it because My account is free X developer account.
I also tried the bearer token still not work.
The error give:
`TooManyRequests: 429 Too Many Requests `
https://developer.x.com/en/portal
Above is the link, I will comment out the code for u.
Give it a try, text me for discussing.
**Workaround**:
I find some dataset from Kaggle, though the data is from 5 years ago,2020.
https://www.kaggle.com/datasets/manchunhui/us-election-2020-tweets/data
Let's keep 15 days data. from oct 15th to oct 31th.
### For nltk download error:
Error:
`[nltk_data] Error loading stopwords:
`[nltk_data] failed: 400 Bad Request> `
`[nltk_data] Error loading wordnet:
`[nltk_data] failed: 400 Bad Request> `
Workaround:
Execute in code line:
`import nltk
print(nltk.data.path) `
Select and open one of the response directory, create a folder called nltk_data
Download from https://github.com/nltk/nltk_data?tab=readme-ov-file
Extract only folder corpora to your path nltk_data
And then you don't need to download stopwords or wordnet components, if u want to use in projects else.
## The result:
