Skip to content

In this repository I have implemented Sentiment analysis in twitter dataset and dataset

License

Notifications You must be signed in to change notification settings

subhadeep-123/Sentiment-Analysis

Repository files navigation

alt text

What is Sentiment-Analysis

the process of computationally identifying and categorizing opinions expressed in a piece of text, especially in order to determine whether the writer's attitude towards a particular topic, product, etc. is positive, negative, or neutral.


1. Twitter Sentiment analysis

  1. Twitter Developer Account
  2. Tweepy Library
  3. NLTK Library

Steps for Twitter Sentiment Analysis

  1. Importing Necessary libraries
  2. setting up the consumer and access api tokens and keys
  3. Setting up the connection bridge and the search token
  4. loading the pretrained model
  5. Data Preprocessing
  6. Fitting the model
  7. Plotting The results

2. Using VADER

  • Valence Aware Dictionary for Sentiment Reasoning is a model used for text sentiments analysis that is sensitive to both polarity (positive/negative) and intensity (strength) of emotion.
  • It is available in the NLTK package and can be applied directly to unlabeled text data
  • Primarily VADER sentiment analysis relies on a dictionary which lexical features to emotion intensities called sentiment scores
  • The sentiment score of a text can be obtained by summing up the intensity of each word in the text.
  • For example, words like "love", "like", "enjoy", "happy" all convey a positive sentiment
  • VADER is intelligent enough to understand basic context of these words, such as "did not love" as a negative sentiment
  • It also understands capitalization and punctuation, such as "love!!!"
  • Sentiment Analysis on raw text is always challenging however, due to a variety of possible factors:
    1. Positive and Negative sentiment is the same text data.
    2. Sarcasm using positive words in a negative way.

About

In this repository I have implemented Sentiment analysis in twitter dataset and dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages