NLP Tutorial – Sentiment Analysis using Scikit Sklearn Python on IMDB Dataset


In this video, we will do sentiment analysis and prediction on the IMDB database using sklearn python package. In this sentiment analysis algorithm on the IMDB dataset, we will start with a short introduction of Pandas, Numpy. Then I will show you how to do text cleaning and preprocessing on the raw text data. Thereafter, TFIDF is performed and Support Vector Machine (SVM) is used in prediction of sentiment on IMDB reviews data.
SVM is a supervised machine learning algorithm that can be used for classification or regression problems. It uses a technique called the kernel trick to transform your data and then based on these transformations it finds an optimal boundary between the possible outputs. In last, The classification report shows a representation of the main classification metrics on a per-class basis. This gives a deeper intuition of the classifier behavior over global accuracy which can mask functional weaknesses in one class of a multiclass problem.
You can improve this sentiment analysis algorithm if you use sentiment analysis using BERT or Deep Learning approach to solve your search for the best model of sentiment analysis. This video is an example of sentiment analysis on Kaggle data. You can download this dataset from my GitHub profile.

#SentimentAnalysis #Scikit_Learn #IMDB_Dataset
πŸ”Š Watch till last for a detailed description
01:41 IMDB Dataset Download
03:57 TFIDF Vectorization
06:08 Text Cleaning Package
12:54 Linear SVM Training
14:40 Model Testing with Real-World Data
17:27 Save ML Model with Pickle

✨ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I’ve been using Kite for 6 months and I love it! Get your FREE coding assistant today!!

πŸ’― Read Full Blog with Code
πŸ’¬ Leave your comments and doubts in the comment section
πŸ“Œ Save this channel and video for watch later
πŸ‘ Like this video to show your support and love ❀️

πŸ†“ Watch My Top Free Data Science Videos
πŸ‘‰πŸ» Python for Data Scientist
πŸ‘‰πŸ» Machine Learning for Beginners
πŸ‘‰πŸ» Feature Selection in Machine Learning
πŸ‘‰πŸ» Text Preprocessing and Mining for NLP
πŸ‘‰πŸ» Natural Language Processing (NLP)
πŸ‘‰πŸ» Deep Learning with TensorFlow 2.0
and Keras
πŸ‘‰πŸ» COVID 19 Data Analysis and Visualization
πŸ‘‰πŸ» Machine Learning Model Deployment Using
Flask at AWS
πŸ‘‰πŸ» Make Your Own Automated Email Marketing
Software in Python

🌍 Check Out ML Blogs:
🐦Add me on Twitter:
πŸ“„ Follow me on GitHub:
πŸ“• Add me on Facebook:
πŸ’Ό Add me on LinkedIn:
πŸ‘‰πŸ» Complete Udemy Courses:
⚑️ Check out my Recent Videos:
πŸ”” Subscribe me for Free Videos:
πŸ€‘ Get in touch for Promotion:

ENROLL in My Highest Rated Udemy Courses
to πŸ”‘ Unlock Data Science Interviews πŸ”Ž and Tests

πŸ“š πŸ“— NLP: Natural Language Processing ML Model Deployment at AWS
Build & Deploy ML NLP Models with Real-world use Cases.
Multi-Label & Multi-Class Text Classification using BERT.
Course Link:

πŸ“Š πŸ“ˆ Data Visualization in Python Masterclass: Beginners to Pro
Visualization in matplotlib, Seaborn, Plotly & Cufflinks,
EDA on Boston Housing, Titanic, IPL, FIFA, Covid-19 Data.
Course Link:

πŸ“˜ πŸ“™ Natural Language Processing (NLP) in Python for Beginners
NLP: Complete Text Processing with Spacy, NLTK, Scikit-Learn,
Deep Learning, word2vec, GloVe, BERT, RoBERTa, DistilBERT
Course Link:

Hello Everyone,
I would like to offer my Udemy courses for free. Course coupon is available only on the following days of the month, 1st & 2nd, 10th & 11th, 20th & 21st of every month. I will send FREE coupons only on these days. If you fill this form today, you will get the coupon in the next slot.

This offer is for a limited time. The only thing you need to do is thumbs up πŸ‘ the video and Subscribe βœ” to the KGP Talkie YouTube channel.

πŸ‘‡ Fill this form



Comment List

  • KGP Talkie
    December 8, 2020

    It was a good video on the sentiment analysis

    Do you have any source code or anything on how you preprocess those datas into train and test?…I have assignment on that itself…please help if you canπŸ™πŸ™

  • KGP Talkie
    December 8, 2020

    Which algorithm is used here? Please tell me

  • KGP Talkie
    December 8, 2020


    We like the content you make,

    And we would be interested if you are interested in publishing a video review (6-10 minutes) of our successful product, which quickly and efficiently converts any audio / video into text in more than 50 languages!

    The service is useful for freelancers / bloggers, especially for creating YouTube subtitles.


    Watch an example of a video review of Gglot:

    If you are interested in cooperation, we suggest discussing payment details πŸ‘Œ

  • KGP Talkie
    December 8, 2020

    Sir please provide a link of code whatever video you make . Coz it become very complicated to understand a code and write a code at same time

Write a comment