Skip to content

This is a simple Sentiment analysis python script file for the purpose of learning.

Notifications You must be signed in to change notification settings

shreyamdg/SimpleSentimentAnalysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Simple Sentiment Analysis

This is a simple example code for Sentiment analysis using NLTK.

Steps to run this script:

  • Clone the repository
  • Change directory to src
  • Run the command python3 ./sentiment.py

Output

{'neg': xxx, 'neu':yyy, 'pos': zzz, 'compound': xyz}

Under the hood, we are using SentimentIntensityAnalyzer from NLTK Library which gives us the negetive, neutral, positive and compound value of a sentiment for a sentence/tweet. Range of compound value is -1 to 1.

About

This is a simple Sentiment analysis python script file for the purpose of learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%