Skip to content

The objective of this task is to detect hate speech in tweets. Tweet contains negative/hate sentiments as well as positive sentiments. So, the task is to classify negative tweets from other tweets. Given a training sample of tweets and labels, where label '1' denotes the tweet is negative and label '0' denotes the tweet is not negative. The obje…

License

Notifications You must be signed in to change notification settings

tetaniarizki/Twitter-Sentiment-Analysis-in-Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Sentiment-Analysis-in-Python

The objective of this task is to detect hate speech in tweets. Tweet contains negative/hate sentiments as well as positive sentiments. So, the task is to classify negative tweets from other tweets. Given a training sample of tweets and labels, where label '0' denotes the tweet is negative and label '1' denotes the tweet is not negative. The objective is to predict the labels on the test dataset.

alt text

Sentiment Analysis:

  • Sentiment analysis and Opinion mining is the computational study of User opinion to analyze the social, psychological, philosophical, behavior and perception of an individual person or a group of people about a product, policy, services and specific situations using Machine learning technique. Sentiment analysis is an important research area that identifies the people’s sentiment underlying a text and helps in decision making about the product.

Steps


1. Data loading.
2. Checking Distribution of Data.
3. Data Preprocessing
  • Remove Punctuations,special symbols and special characters.

  • Tokenization

  • Stemming

WordCloud

alt text

Feature Extraction:


1. Bag Of Words
2. TF-IDF
3. Word2Vec

Model Building:


Building Logistic Regression and Support Vector Machine (SVM) on BOW, TF-IDF & Word2Vec features.

Results:


Logistic Regression and SVM on Word2Vec features outperforms the other model.


Thank You!

Follow @shreyaswankhede

About

The objective of this task is to detect hate speech in tweets. Tweet contains negative/hate sentiments as well as positive sentiments. So, the task is to classify negative tweets from other tweets. Given a training sample of tweets and labels, where label '1' denotes the tweet is negative and label '0' denotes the tweet is not negative. The obje…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%