Twitter Sentiment Analysis (NLP) | Machine Learning | Python

Поділитися
Вставка
  • Опубліковано 24 жов 2024

КОМЕНТАРІ • 183

  • @pranayzalke3461
    @pranayzalke3461 3 роки тому +6

    Big thank you Ashwin, it helped me do a project overnight.

  • @kajalsoni7721
    @kajalsoni7721 2 роки тому +4

    great tutorial!! can you tell me how would we go about making a gui for this model? using gradio maybe?

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      You can use any gui module like tkinter or others to create it. Backend functions will be same. You can check how to deploy ml project for more information

    • @kajalsoni7721
      @kajalsoni7721 2 роки тому

      @@HackersRealm thanks for the reply! i'm trying to deploy the model,running into a lot of errors.do i need to set up twitter api for real time tweet collection?

  • @dataanalyticsfun9883
    @dataanalyticsfun9883 3 роки тому +4

    Thanks you very much sir for making amazing video .sir I have request to you to make a video regarding future engineering and feature selection . thanks

  • @saviovnn
    @saviovnn 3 роки тому +3

    Thanks for the caption it helps a lot !!! Send hi it to Brazil.

  • @viraj9954
    @viraj9954 2 роки тому +3

    hey!! great work....just wanted to know which algorithm did you actually use in above video

  • @rohanpatel8106
    @rohanpatel8106 3 роки тому +6

    Sir please make some more advanced project like this for cse students

    • @HackersRealm
      @HackersRealm  3 роки тому +2

      yeah sure, I will be making more projects!!!

    • @pavansai5239
      @pavansai5239 2 роки тому

      did u know how to download the dataset ? help me out of this

    • @BEESaiShivam
      @BEESaiShivam Рік тому

      Are these too basic to put on cv?

  • @nasreenbanu2245
    @nasreenbanu2245 2 роки тому +2

    Thank you so much.You made me understand complex problem to simple.Hats off..keep going.Can u make video on choosing statistical test.

    • @HackersRealm
      @HackersRealm  2 роки тому

      sure, I will make separate videos for the concepts!!!

  • @djadeja4709
    @djadeja4709 3 роки тому +5

    First of all thanks for such amazing explaination,
    But I want to ask you that from feature extraction step you didn't use datavisualization or list of hashtags you created. I have done the same whole code as well as second time after preprocessing I jumped on feature extraction and both gave the same output in f1_score and accuracy_score!!!
    So can you explain how bag of word has helped in classification??? In which step they classified positive and negative tweets?

    • @HackersRealm
      @HackersRealm  3 роки тому +1

      Glad you liked the video!!! hashtag won't give us meaning results as it doesn't contain the actual tweet, so i didn't use that. bag of words are used to identify the set of words that considers positive or negative. Initially it's available in dataset, after that it will try to predict it.

    • @djadeja4709
      @djadeja4709 3 роки тому +2

      @@HackersRealm Got it!!! Thanks you so much!!!

  • @razibdebnath5386
    @razibdebnath5386 3 роки тому +5

    can i use the same pre-processing procedure for SVM,naive bayes and random forest model?

  • @purvikabajaj8383
    @purvikabajaj8383 3 роки тому +2

    thank you for a clear explanation

  • @ephrembekele5241
    @ephrembekele5241 3 роки тому +2

    Sir you said the objective was to detect hate speech in tweets. so what can we conclude from the results? I am a little confused.

    • @HackersRealm
      @HackersRealm  3 роки тому

      the negative reviews we are classified are hate speech, using this model, we can able to identify that

    • @ephrembekele5241
      @ephrembekele5241 3 роки тому

      @@HackersRealm what does the accuracy scored show us in this case?

    • @HackersRealm
      @HackersRealm  3 роки тому

      @@ephrembekele5241 how many tweets we predicted correctly using the model

  • @RashmiTigadi
    @RashmiTigadi 6 місяців тому

    Which algorithm is used in this process which u have explained

  • @mouskey
    @mouskey 3 роки тому +2

    Tq sir its more helpuful for my project

    • @HackersRealm
      @HackersRealm  3 роки тому

      glad it was helpful!!!

    • @mouskey
      @mouskey 3 роки тому +1

      Yes sir its reallyhelpful, one week i stuck in this program but i got a solution now do more like this sir if you don't mine post tutorial video of adv python its more helpful for beginners lyk me once again tq sir.

    • @HackersRealm
      @HackersRealm  3 роки тому

      @@mouskey advanced in python or data science?

    • @mouskey
      @mouskey 3 роки тому

      @@HackersRealm both

    • @HackersRealm
      @HackersRealm  3 роки тому +1

      @@mouskey sure, planning to do that!!!

  • @flouwer6669
    @flouwer6669 3 роки тому +2

    How can I classify it as neutral as well?
    and
    How can we integrate the model into a web app?

    • @HackersRealm
      @HackersRealm  3 роки тому

      you have to use the dataset that has neutral class and use flask to integrate in web app

  • @landaalhanshaly7989
    @landaalhanshaly7989 Рік тому

    Can you recommend a book for python and machine learning?

  • @nugrahaputra3632
    @nugrahaputra3632 3 роки тому +2

    thanks very much brother, good luck

  • @mwanza826
    @mwanza826 Рік тому +1

    Hello sir, i have an issue downloading wordcloud even after installing c++ build tools , what could the issue be

    • @HackersRealm
      @HackersRealm  Рік тому

      what error you're facing while installing?

  • @خلیلشاھ-ش9ع
    @خلیلشاھ-ش9ع 2 роки тому +2

    how can we get confusion matrix eg precision, recall, f1 scores?

    • @HackersRealm
      @HackersRealm  2 роки тому

      you can use classification report module to get that

  • @artfromtheheart9545
    @artfromtheheart9545 Рік тому

    Can You Please Make video for this? "Automated Classification of Societal Sentiments
    on Twitter With Machine Learning"

    • @HackersRealm
      @HackersRealm  Рік тому

      I have done a video on real time twitter sentiment analysis. you can check if that's the case

  • @Moviesslider
    @Moviesslider 2 роки тому +1

    How do you get that dataset?
    How do I get data directly from the Twitter tweets?
    Please suggest way for that.

    • @HackersRealm
      @HackersRealm  2 роки тому

      the dataset can be downloaded from the links in the description. For real time, twitter analysis, I will make a video in the upcoming weeks

  • @viane123456
    @viane123456 2 роки тому +1

    Sir I am a btech first year student. can you tell me how can we get current tweets from twitter in csv file using python?

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      You can use tweepy to get current tweets; You can also check realtime twitter sentiment analysis in the playlist

  • @rapidknowledge3483
    @rapidknowledge3483 3 роки тому +1

    Please make video on live tweets analysis using machine learning

  • @mukeshrajpurohit5593
    @mukeshrajpurohit5593 2 роки тому

    It will create data leakage problem if we get BOW before splitting the data into train & test.

  • @palakparmar9674
    @palakparmar9674 7 місяців тому +1

    i have to do research paper , where can i find whole code. because it was not there on github

    • @HackersRealm
      @HackersRealm  7 місяців тому +1

      it's available in github... go to machine learning project repository and find the folder with title

  • @ARkhan-xw8ud
    @ARkhan-xw8ud Рік тому

    Since the data was imbalanced, you should use oversampling technique

  • @mouskey
    @mouskey 2 роки тому +1

    Hlo sir, sorry for disturbing you i have one doubt if the letter is not happy which kind of senmential the code will take positive or negative?

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      i didn't get you, can you rephrase it!!!

    • @mouskey
      @mouskey 2 роки тому

      Sir, in sentimental analysis positive words are happy like that and negative words are sad like that what we consider if the word is not happy .it's a positive side or negative side sir

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      @@mouskey it may consider positive, to overcome these limitations, we may go for lstm models

    • @mouskey
      @mouskey 2 роки тому +1

      @@HackersRealm okay sir tq for ur valuable reply, Sir in this video you use lstm?

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      @@mouskey No, I have used a machine learning algorithm, check fake news detection project, I have used lstm in that

  • @mouskey
    @mouskey 2 роки тому +1

    Sir , could you please tell me the code of movie review in twitter sentimental analysis and the project uses also.

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      the process remains the same for any kind of sentiment analysis

    • @mouskey
      @mouskey 2 роки тому +1

      @@HackersRealm tq sir

  • @masternik6126
    @masternik6126 2 роки тому

    I want to make a project on detection of self harming or Sucidial tweets

  • @VaidhiKapoor-wd7zr
    @VaidhiKapoor-wd7zr 22 дні тому

    Can you help me with the knee osteoarthritis

    • @HackersRealm
      @HackersRealm  21 день тому

      I didn't understand, could you please explain more details about this

  • @AIResearchTechniques
    @AIResearchTechniques 2 роки тому +1

    Sir on df['clean_tweet'] = np.vectorize(remove_pattern)(df['tweet'],"@[\w]*") when I run this code the output for clean tweet shows none

    • @AIResearchTechniques
      @AIResearchTechniques 2 роки тому

      How to rectify this error

    • @HackersRealm
      @HackersRealm  2 роки тому

      please check whether the data is loaded

    • @AIResearchTechniques
      @AIResearchTechniques 2 роки тому +2

      Thank you sir ..When I remove the '\w' the output run without error and showed all cleaned tweets

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      @@AIResearchTechniques Glad to hear that

    • @payalkasera4596
      @payalkasera4596 2 роки тому

      @@AIResearchTechniques i am facing same issue can u help me

  • @umamahaswarikarre8062
    @umamahaswarikarre8062 3 роки тому +1

    Sir is this a project for CSE or ECE

    • @HackersRealm
      @HackersRealm  3 роки тому

      we can't specify any department for the projects, anyone can use based on the applications

  • @parth1211
    @parth1211 Рік тому

    hello sir , why cant we do logistic regression directly ? why we using nlp ?

    • @HackersRealm
      @HackersRealm  Рік тому

      we cannot give text data as it is, as the model can't understand. It can only get information through numbers.

  • @skeler4430
    @skeler4430 2 роки тому

    Sir how to use SVM instead of logistic regression do you have code or can you please explain

    • @HackersRealm
      @HackersRealm  2 роки тому

      replace the model name with svm model, that's it

  • @himanshunagapure9883
    @himanshunagapure9883 2 роки тому +1

    Your data has label for 1 as racist(negative) and 0 denotes tweets as not racist(positive) .So what did you consider for neutral tweets??

    • @HackersRealm
      @HackersRealm  2 роки тому

      This dataset doesn't have neutral, you can use other tweets dataset for 3 classes!!!

  • @خلیلشاھ-ش9ع
    @خلیلشاھ-ش9ع 2 роки тому +1

    sir can we bert model ?

  • @VijayKumar-ck7ww
    @VijayKumar-ck7ww 3 роки тому +1

    Can we apply naive Bayes ?

  • @harshi_vlogs07
    @harshi_vlogs07 Рік тому +1

    Thank you 😊

  • @ترافهعشق-غ2ظ
    @ترافهعشق-غ2ظ 9 місяців тому

    كيف يمكن الحصول على جدوله البيانات من النص الكلمات ام من اين ومن لا يدخلنا csv

  • @floweraddictxx6238
    @floweraddictxx6238 3 роки тому +1

    Bro why i can't use PorterStemmer? Is there any that i need to install?? Please help

    • @HackersRealm
      @HackersRealm  3 роки тому +1

      you can use that if you installed nltk package

    • @floweraddictxx6238
      @floweraddictxx6238 3 роки тому

      @@HackersRealm but already installed bro

    • @HackersRealm
      @HackersRealm  3 роки тому

      @@floweraddictxx6238 then it will work, it has all the modules

  • @pratikshapatil7413
    @pratikshapatil7413 Рік тому

    Can you please tell me from where I can Download the Dataset

    • @HackersRealm
      @HackersRealm  Рік тому +1

      you can get it from link provided in description or github

  • @RiyaSalvi-q4e
    @RiyaSalvi-q4e Рік тому

    Hello sir..i got an error while visualisation the frequent words..it says that only supported for Truetype fonts..plz help me

    • @HackersRealm
      @HackersRealm  Рік тому

      are you using different dataset?

    • @RiyaSalvi-q4e
      @RiyaSalvi-q4e Рік тому

      @@HackersRealm yess

    • @HackersRealm
      @HackersRealm  Рік тому

      @@RiyaSalvi-q4e the please check the type of the column and may be change to strings

    • @RiyaSalvi-q4e
      @RiyaSalvi-q4e Рік тому

      My dataset has all objects.. so i need to convert them in string? Then this problem will get resolve?

    • @HackersRealm
      @HackersRealm  Рік тому

      @@RiyaSalvi-q4e yes most likely!!!

  • @aritrochakraborty8122
    @aritrochakraborty8122 3 роки тому

    Facing issue regarding installing the wordcloud....
    " ERROR: wordcloud-1.5.0-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform. "
    how to fixed it?

    • @HackersRealm
      @HackersRealm  3 роки тому

      try install visual c++ build tools and retry the command

  • @himanshurathod1178
    @himanshurathod1178 Рік тому

    could you please tell me how did you load the dataset i am getting no such file error

    • @HackersRealm
      @HackersRealm  Рік тому

      please check whether the file is in the same directory or not

  • @aquillinantony2770
    @aquillinantony2770 3 роки тому

    Why we use "np.vectorize" in twitter handle removing

    • @HackersRealm
      @HackersRealm  3 роки тому +1

      i just showed different ways to pass values to the functions. It's not compulsory to use this

  • @hrittickdebnath35
    @hrittickdebnath35 3 роки тому +1

    Thanks buddy

  • @LTRA-r2o
    @LTRA-r2o 2 роки тому

    Can you help me , i have assignment I have to convert before August 20 😭 about nlp sentiment analysis Tweet

    • @HackersRealm
      @HackersRealm  2 роки тому

      Which part you need help?

    • @LTRA-r2o
      @LTRA-r2o 2 роки тому

      @@HackersRealm about sentiment analysis with naive Bayes

    • @HackersRealm
      @HackersRealm  2 роки тому

      @@LTRA-r2o you can use the same flow and change the model for this

  • @yasamvarnika7998
    @yasamvarnika7998 Рік тому

    Hello Sir, Please help me to download the dataset its not downloading

    • @HackersRealm
      @HackersRealm  Рік тому

      You can get it from the github repo as well!!!

  • @machinelearning3518
    @machinelearning3518 2 роки тому

    did u made the regex tutorial?

    • @HackersRealm
      @HackersRealm  2 роки тому

      No Not anything specifically yet!!!

  • @Saboor-Hamedi
    @Saboor-Hamedi 2 роки тому

    How to get a label on our individual dataset from Twitter?

    • @HackersRealm
      @HackersRealm  2 роки тому

      You can use pretrained model or you have to manually label them by yourself, if you want to create a complete dataset

    • @Saboor-Hamedi
      @Saboor-Hamedi 2 роки тому

      @@HackersRealm Thank you, but what that label mean? Is it important for research, because I am using my data for thesis

    • @HackersRealm
      @HackersRealm  2 роки тому

      @@Saboor-Hamedi label is the output column which will be used as result

    • @Saboor-Hamedi
      @Saboor-Hamedi 2 роки тому

      @@HackersRealm How to get that results? I was asking about that

  • @ghosthanded
    @ghosthanded 2 роки тому

    Sir I am getting an empty array for the function of extracting hashtags how to resolve this

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      are you using different data or same?

    • @ghosthanded
      @ghosthanded 2 роки тому

      @@HackersRealm a different one I have scarped the data myself

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      @@ghosthanded then you may need to change the processing steps accordingly

    • @ghosthanded
      @ghosthanded 2 роки тому

      @@HackersRealm can you give me a reference for it?

  • @priyachimanchode648
    @priyachimanchode648 3 роки тому +1

    Can't find the CSV file in any links, it would be convenient if just put the link in the description directly.

    • @HackersRealm
      @HackersRealm  3 роки тому +1

      The dataset link is in the description, you can get it from analytics vidhya or you can get it from github repo too, Please check and let me know

    • @priyachimanchode648
      @priyachimanchode648 3 роки тому +1

      Found them, thank you.

  • @AnuragKumar-ij7rl
    @AnuragKumar-ij7rl 2 роки тому

    There is error while creating graph unable to create graph by this process

  • @himanshupandey1167
    @himanshupandey1167 Рік тому

    sir not able to get the dataset from the provided link

    • @HackersRealm
      @HackersRealm  Рік тому +1

      you can get it from github repo also

  • @kavya.r8385
    @kavya.r8385 3 роки тому

    hey, i am getting error in the 6th step (remove @user)

  • @samreenshamim8161
    @samreenshamim8161 2 роки тому

    Hello Sir! I hope you're doing well, Sir I got an error when I typed this command:
    df1['clean_tweet'] = df1['clean_tweet'].apply(lambda x: " ".join([w for w in x.split() if len(w)>3]))
    AttributeError: 'float' object has no attribute 'split'
    I would be grateful if you would help me out a little :)!

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      can you rerun the code from the start? or you're using different dataset for this project?

    • @samreenshamim8161
      @samreenshamim8161 2 роки тому

      @@HackersRealm I am working with a different dataset indeed but I've checked the datatype of the column using the info() command and it shows object datatype. So I think this shouldn't come up with an attribute error but it still shows that error.

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      @@samreenshamim8161 I think the column may have null values, try to remove null values and proceed

    • @samreenshamim8161
      @samreenshamim8161 2 роки тому +1

      @@HackersRealm okay Sir I'll try 😊

    • @samreenshamim8161
      @samreenshamim8161 2 роки тому +1

      @@HackersRealm Sir my problem got solved! I did a small conversion of x.split() into str(x).split(). It gave me tweets without short words successfully :).

  • @pavansai5239
    @pavansai5239 2 роки тому

    please help me out from this i cant download the dataset , please help me .........

    • @HackersRealm
      @HackersRealm  2 роки тому +1

      you can download the data from github too, try it

    • @pavansai5239
      @pavansai5239 2 роки тому +1

      @@HackersRealm got it thanks

  • @srishtimishra5101
    @srishtimishra5101 3 роки тому

    can't find dataset sir ..It's redirecting to some site.

    • @HackersRealm
      @HackersRealm  3 роки тому

      you can find it in the github repo

    • @srishtimishra5101
      @srishtimishra5101 3 роки тому

      @@HackersRealm It's redirecting to analytics vidya and when I go to github and try to access dataset its telling can't open....It says can't show files that are this big right now ..and open raw data like that

    • @HackersRealm
      @HackersRealm  3 роки тому

      @@srishtimishra5101 In github, you can download the file and use it. or reach me over insta or linkedin, I will share the data

    • @theghost_16
      @theghost_16 2 роки тому

      @Srishti Mishra if made the project can you plss share the link of datasets .

  • @RevatiVardekar
    @RevatiVardekar Рік тому

    where can i get the dataset

    • @HackersRealm
      @HackersRealm  Рік тому

      you can get it from the link in the description!!!

  • @meghaagarwal9907
    @meghaagarwal9907 2 роки тому

    Please provide the dataset file, it can't be found!

    • @HackersRealm
      @HackersRealm  2 роки тому

      Please check the description or download it from github repo

  • @ashutoshbansal8254
    @ashutoshbansal8254 3 роки тому +1

    i don't find CSV file

    • @HackersRealm
      @HackersRealm  3 роки тому

      please check the github link or dataset link

  • @oreoluwaadeyegbe4670
    @oreoluwaadeyegbe4670 2 роки тому

    Hey I would love to get in contact with you as I need just a bit of help in my dissertation for my Masters, if you won’t mind of you of course. Thank you in advance

    • @HackersRealm
      @HackersRealm  2 роки тому

      you can book a consultation using the link in the description or reach me via insta or linkedin, Thanks!!

  • @ShivaniSphere
    @ShivaniSphere 2 роки тому

    Can you pls share this code here

    • @HackersRealm
      @HackersRealm  2 роки тому

      Please check the github repo for the code, link in the description

  • @roshnimustafa8051
    @roshnimustafa8051 2 роки тому +1

    how to download dataset?

    • @HackersRealm
      @HackersRealm  2 роки тому

      link is in the description

    • @roshnimustafa8051
      @roshnimustafa8051 2 роки тому

      but i didnt found dataset there

    • @HackersRealm
      @HackersRealm  2 роки тому

      @@roshnimustafa8051 you have to register in that website to get it or you can get it from github repo link too

  • @AmirSohel-iz9kz
    @AmirSohel-iz9kz 3 роки тому

    Dataset?

    • @HackersRealm
      @HackersRealm  3 роки тому

      you can check the github repo!!!

    • @afridmohammed6711
      @afridmohammed6711 2 роки тому

      @@HackersRealm It is showing that " we can't show the files that are this big right now"

    • @HackersRealm
      @HackersRealm  2 роки тому

      @@afridmohammed6711 You can download the file and view it or you can use other link to download the file

    • @kumarithalathoti9784
      @kumarithalathoti9784 2 місяці тому

      Hey did you got the dataset