Navigation Menu

Skip to content

bharatr21/sentiment-analysis-nltk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis using NLTK

Python Sentiment Analysis using NLTK

If you are on Ubuntu/Debian distros, python 3 (preferably Version 3.5 and above) must already be up and running on your machine, otherwise get python3 for Windows here

Check your python 3 version using:-

python3 --version

At first, install pip using:-

sudo apt install python3-pip

Or the corresponding commands such as sudo pacman or sudo yum etc. Then, the dependencies for this project must be installed using:-

pip install -r requirements.txt

After which,this repository must be cloned using this command:-

git clone https://github.com/Bharat123rox/sentiment-analysis-nltk.git

and then a file named secretkeys.py must be created with the following:-

consumer_key = 'zxcvzxcvzxcvzxcv'
consumer_secret = '1234123412341234'
access_token = 'qwerqwerqwerqwerqwer'
access_token_secret = 'asdfasdfasdfasdfasdf'

(These are just sample keys, these must be replaced with the actual user API keys on registering for a Twitter App) Registering for a new Twitter App can be done here on Twitter Developers, and on completion of registration, these keys will be generated.

After this, the code can be used and edited freely for any purpose.

This code is covered by MIT License.

Contributions and patches are definitely welcome.

About

Python Sentiment Analysis using NLTK

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages