Skip to content

yasimk/nlp-sentiment-analysis-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

nlp-sentiment-analysis-python

Leveraging NLP to do sentiment analysis in Python. Read about the background here - https://medium.com/@yasimk_87248/using-data-science-in-everyday-life-f9b58f1f74af

Using NLP and Python libraries, measure the satisfaction based on the data collected from a google survey. Please read the background about the project published in my Medium blog to get a good understanding of the requirement.

  1. Leveraged pandas data frame to read the CSV file and to do data transformations (Adding columns, measuring correlation etc.)
  2. Used the NLTK - FreqDist and NLTK Word tokenize to count the most frequent words used in various survey questions 
  3. Used matplotlib.pyplot to draw histograms, bar charts for various satisfaction metrics
  4. Used regular expressions (re) and Lambda to cleanse the data and to do transformations
  5. Used TextBlob to measure the sentiment (positive or negative) using Polarity and measured subjectivity using subjectivity
  6. Used WorldCloud to generate the WordClouds for unstructured data
  7. Used seaborn library to plot heat map for correlation matrix, bar plot
  8. Lastly used Naive bayes to train the data set and predict the sentiment (Not included in the code base)

About

Leveraging NLP to do sentiment analysis in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published