AI Spectrum
AI Spectrum
  • 19
  • 479 090
Twitter sentiment analysis for 100+ languages with roBERTa
In this video I show how to do sentiment analysis for multi-lingual tweets. I use a multilingual XLM-roBERTa-base model and Google Translate to handle different languages.
Code on GitHub:
github.com/mehranshakarami/AI_Spectrum/tree/main/2024/Multi-lingual%20sentiment%20analysis
Resources:
- XLM-roBERTa model: huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment
- googletrans: github.com/ssut/py-googletrans
Who Am I?
Hi there! If you’re new to the channel, my name is Mehran Shakarami. I got my PhD in Applied Math, and I'm currently a data scientist in the aviation industry. In this channel I share videos about AI, coding and math.
Content:
00:00 What am I going to do?
00:24 What is XLM-roBERTa?
03:00 Translate to English
05:49 Sentiment analysis of supported languages
15:05 Sentiment analysis with translation
20:50 Accuracy analysis
มุมมอง: 1 638

วีดีโอ

How I get Tweet data for FREE in 2024 as a data scientist
มุมมอง 28K6 หลายเดือนก่อน
Learn how to get tweet data for free! I’ll show you how to use Twikit, handle rate limit exceptions, save data in a CSV file, and compose complex search queries for Twitter scraping. *UPDATE*: To run the code, use *pip install “twikit 1.7.6”* to install the _twikit_ package. The latest update of _twikit_ deprecated the synchronous method which is used in the code. Code on GitHub: github.com/meh...
Get Access to the FREE ChatGPT API with Python
มุมมอง 24Kปีที่แล้ว
Learn how to start implementing ChatGPT in your Python code. In this video, I explain all the steps to set up a reversed engineered ChatGPT API (revChatGPT), and use it in terminal or in Python code. Resources: - revChatGPT: github.com/acheong08/ChatGPT - Projects made with revChatGPT: github.com/stars/acheong08/lists/awesome-chatgpt Who Am I? Hi there! If you’re new to the channel, my name is ...
ChatGPT wrote this video about itself.
มุมมอง 3702 ปีที่แล้ว
I asked ChatGPT to write a script about itself, and this is the result. My prompts to ChatGPT: 00:00 - I say hi to the viewer and explain that the script was entirely generated by ChatGPT, in conversation language 00:31 - explain what is natural language processing in conversation language 01:06 - explain how NLP has evolved over years in conversational language, and don't say "Keep watching .....
The evolution of CAPTCHA
มุมมอง 4.3K2 ปีที่แล้ว
Since 2000, CAPTCHAs have been annoying us online. But are they able to keep robots away? Let’s find out... References: - I'm Not A Robot ✅: th-cam.com/video/o1zNIm8GVPY/w-d-xo.html - Why captchas are getting harder: th-cam.com/video/lUTvB1O8eEg/w-d-xo.html - I'm not a robot: th-cam.com/video/jCr6rNaZ9EU/w-d-xo.html - reCAPTCHA: Tough on Bots, Easy on Humans, Great on Mobile - Google I/O 2016: ...
Run Python in the browser with PyScript
มุมมอง 1.5K2 ปีที่แล้ว
Now you can use PyScript and directly run Python in HTML. GitHub page of PyScript: github.com/pyscript/pyscript/blob/main/docs/tutorials/getting-started.md List of 3rd party modules: github.com/pyodide/pyodide/tree/main/packages PyScript demos: pyscript.net/examples/ Content: 00:00 - What is PyScript? 00:30 - Hello World 02:30 - Writing into HTML elements 03:34 - Importing 3rd party packages 05...
How to Install Python on Windows in 2022
มุมมอง 8352 ปีที่แล้ว
Learn how to install Python 3.10.4 on Windows 11, and run your first Python script.
This AI sees math | Python project
มุมมอง 1K2 ปีที่แล้ว
I wrote a program that sees handwritten math and plots it with the help of AI. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Math_plotter
Get UNLIMITED Tweets by Python Without Twitter API
มุมมอง 108K2 ปีที่แล้ว
Learn how to get twitter data with no limits, no API and no authentication. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/snscrape
Twitter Sentiment Analysis by Python | best NLP model 2022
มุมมอง 98K2 ปีที่แล้ว
Learn how to accurately do Natural Language Processing (NLP) on twitter data, and use roBERTa model with python for tweet sentiment analysis. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Sentiment_Analysis roBERTa on Huggingface: huggingface.co/cardiffnlp/twitter-roberta-base-sentiment
Amazon Web Scraping with Python for Beginners in 2022
มุมมอง 4.7K2 ปีที่แล้ว
Learn how to do web scraping with Python and Beautiful Soup on Amazon.com, and save the data into a CSV file. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Web_Scraping Content: 00:00 - Intro 01:56 - Get HTML code of Amazon.com by requests 04:50 - Get all best sellers in books 07:25 - Extract ranks of books 09:13 - Extract titles of books 13:21 - Extract authors of books...
How to Get Real-time Tweets by Python
มุมมอง 19K3 ปีที่แล้ว
How to Get Real-time Tweets by Python
Get TWEETS by User and Hashtag with Python | Twitter API 2022
มุมมอง 36K3 ปีที่แล้ว
Get TWEETS by User and Hashtag with Python | Twitter API 2022
How to get TWEETS by Python | Twitter API 2022
มุมมอง 148K3 ปีที่แล้ว
How to get TWEETS by Python | Twitter API 2022
Is being SELFISH (NOT) effective?
มุมมอง 2903 ปีที่แล้ว
Is being SELFISH (NOT) effective?

ความคิดเห็น

  • @suzieasmr
    @suzieasmr 11 ชั่วโมงที่ผ่านมา

    if i were to download python and start from scratch do I need to have any other packages installed/ IDEs to run this code

  • @LiamCook-b1b
    @LiamCook-b1b 2 วันที่ผ่านมา

    Awesome tutorial! Is there a way to integrate HasData's Twitter scraping API with these methods?

  • @jonjoe1762
    @jonjoe1762 12 วันที่ผ่านมา

    I guess this version 1.7.6 no longer works. - It did trigger a login attempt I received on mail, but it didn't actually work and cookies saved a blank json of {}. File "....\twikit\client.py", line 152, in request raise Forbidden(message, headers=response.headers) twikit.errors.Forbidden: status: 403, message: "{"errors":[{"code":353,"message":"This request requires a matching csrf cookie and header."}]}"

  • @fatimaabisha
    @fatimaabisha 18 วันที่ผ่านมา

    Not working bruh 😢

  • @fkingerd
    @fkingerd 19 วันที่ผ่านมา

    i don't get it i followed your steps to the dot and i get like a lot of fking errors, i used the 1.7.6 version for twikit but still a gazilion errors

  • @SinOfLustAMV
    @SinOfLustAMV 22 วันที่ผ่านมา

    Thanks a lot for this <3

    • @vidushijain6802
      @vidushijain6802 22 วันที่ผ่านมา

      Is the code working for you? Its giving me error code 400.

  • @rekakutasi7573
    @rekakutasi7573 หลายเดือนก่อน

    How can I retrieve tweets from Twitter nowadays without having to pay?

  • @marcositurbide3788
    @marcositurbide3788 หลายเดือนก่อน

    Gracias! Me sirvio bastante Tuve complicaciones, pero al final pude hacerlo funcionar

    • @icktheprogrammer
      @icktheprogrammer หลายเดือนก่อน

      @marcositurbide3788 saludos hermano, te funcionó? Tenía miedo que X hubiese visto este video y lo dañe

  • @georgia-pro7357
    @georgia-pro7357 หลายเดือนก่อน

    Hi , so why not using Tweepy ?

  • @Dr_Larken
    @Dr_Larken หลายเดือนก่อน

    I just found your channel, this is my third fourth video! I was going to subscribe, but I can’t tell if you’re still posting or if you’re going to continue with the channel!? Has a lot of potential!!!

  • @ShokoufehNaseri
    @ShokoufehNaseri หลายเดือนก่อน

    good job bro. the video is so clear and useful. do you know how can I apply for academic research access over X?

  • @aoigetsu
    @aoigetsu หลายเดือนก่อน

    Hİ, thank you for sharing this information. It's been great to see since *someone* is doing their absolute best to kill Twitter as a research tool. I am hoping to use the information shared for an academic research project. I was wondering, have you ever used twikit on Google Colab or just on Jupyter notebook?

  • @nasimbaledi1603
    @nasimbaledi1603 2 หลายเดือนก่อน

    GTP!!

  • @gabrieldelrosario6692
    @gabrieldelrosario6692 2 หลายเดือนก่อน

    Very valuable video, thank you

    • @Lang-kid
      @Lang-kid 2 หลายเดือนก่อน

      Do you run the code successfully?

  • @gabokings260388
    @gabokings260388 2 หลายเดือนก่อน

    👏👏👏👏👏 genius!!!

    • @TienPham-kb6xr
      @TienPham-kb6xr หลายเดือนก่อน

      can you run the code successfully?

    • @gabokings260388
      @gabokings260388 หลายเดือนก่อน

      @@TienPham-kb6xr yeah men, I ran it successfully several times to the point where my Twitter account got blocked🤣🤣🤣

    • @gabokings260388
      @gabokings260388 หลายเดือนก่อน

      @@TienPham-kb6xr I was able to run it locally, and it worked, but my Twitter account got blocked from overuse

  • @abdelm4lek
    @abdelm4lek 2 หลายเดือนก่อน

    I hope you will still upload another version with a larger dataset

  • @bharatkori659
    @bharatkori659 2 หลายเดือนก่อน

    It was very helpfull for me as a aspiring Data Scientist

  • @winicius12345
    @winicius12345 2 หลายเดือนก่อน

    Still working?

  • @shrutitiwari2896
    @shrutitiwari2896 2 หลายเดือนก่อน

    Your video content,quality is of top notch

  • @Kencha-learns-Devops
    @Kencha-learns-Devops 2 หลายเดือนก่อน

    it's not chatGTP...

  • @mabbbassa
    @mabbbassa 2 หลายเดือนก่อน

    Have you tried the Guest Client?

  • @ignacioibanez6332
    @ignacioibanez6332 2 หลายเดือนก่อน

    Can anybody help me to run the code, i tried several times and i didn't worked.

  • @xxtseed
    @xxtseed 2 หลายเดือนก่อน

    Thanks for the tutorial! While coding the scraper is straightforward, I ran into some practical issues with proxies and rate limits. Found a workaround using Apify's free monthly credits ($5) - enough to fetch 20k tweets without dealing with proxies or API limits. Might be useful for others starting out.

  • @wicherast
    @wicherast 2 หลายเดือนก่อน

    anyone get "status: 400, message: "{"errors":[{"code":399,"message":"Sorry, we could not find your account. "???

  • @RaulMercado
    @RaulMercado 2 หลายเดือนก่อน

    You are a genius man! I am doing a thesis about epidemiological models applied to information difussion in Twitter, and of course I will need lot of tweets. Thanks!

    • @Pythonist_01
      @Pythonist_01 2 หลายเดือนก่อน

      ok it gives an error i think twitter has blocked access

    • @umerkarbari8409
      @umerkarbari8409 2 หลายเดือนก่อน

      is it working?

  • @giorgiopallucchini6578
    @giorgiopallucchini6578 2 หลายเดือนก่อน

    Is it not safe for your twitter account?

  • @SebastianAguilar-ec5ul
    @SebastianAguilar-ec5ul 3 หลายเดือนก่อน

    Do you know if the query syntax is different from that of the official API? When I try to use queries from the advanced search, I get errors in extracting data from the time frames I specified or the keywords I want to search for.

  • @mohsenshahi9750
    @mohsenshahi9750 3 หลายเดือนก่อน

    it's killing me.. status: 400, message: "{"errors":[{"code":366,"message":"Missing data."}]}"

  • @ramblingsofadegenerate1174
    @ramblingsofadegenerate1174 3 หลายเดือนก่อน

    is this api still working

  • @HariNainyarPillai
    @HariNainyarPillai 3 หลายเดือนก่อน

    @aispectrum i got Cookies loaded successfully. An error occurred: status: 403, message: ""

    • @ajayhiremath629
      @ajayhiremath629 3 หลายเดือนก่อน

      Same here, I belive Twitter blocked twikit as well I guess.

  • @aterynazinzura5498
    @aterynazinzura5498 3 หลายเดือนก่อน

    Hey man, I'm so happy you're doing this stuff on TH-cam. Waiting for the next videos and thank you for your work!!

  • @yusufalkawri399
    @yusufalkawri399 3 หลายเดือนก่อน

    It doesn't work with me.

  • @花开陌路-t8u
    @花开陌路-t8u 3 หลายเดือนก่อน

    twikit 2.13 Can the blogger update the code?

  • @farhanalhafizh5874
    @farhanalhafizh5874 3 หลายเดือนก่อน

    hey guys just wondering, i follow every step on the video but when i run the program it says: Traceback (most recent call last): File "d:\S1\TA\Scraping data\scraping.py", line 67, in <module> for tweet in tweets: ^^^^^^ TypeError: 'coroutine' object is not iterable <sys>:0: RuntimeWarning: coroutine 'Client.search_tweet' was never awaited anyone know how to fix it?

    • @AZELOUALIDINEKAWTAR
      @AZELOUALIDINEKAWTAR 2 หลายเดือนก่อน

      i found the same error , did you fix it???

    • @farhanalhafizh5874
      @farhanalhafizh5874 2 หลายเดือนก่อน

      @AZELOUALIDINEKAWTAR nope mate

  • @gabyuquillastrujillo5082
    @gabyuquillastrujillo5082 3 หลายเดือนก่อน

    it's 2024 and snscrape not working anymore :(

  • @user-tl1qc9ym2y
    @user-tl1qc9ym2y 4 หลายเดือนก่อน

    can you please provide the code , thank you

  • @fpishita2725
    @fpishita2725 4 หลายเดือนก่อน

    🐐

  • @priyanshumathur7416
    @priyanshumathur7416 4 หลายเดือนก่อน

    It's givinng me the following error when I ran the initial code to get 1 tweet: for tweet in tweets: TypeError: 'coroutine' object is not iterable sys:1: RuntimeWarning: coroutine 'Client.search_tweet' was never awaited Anyone has a solution for that? P.S. - I really loved this video of yours

    • @rammarthi5790
      @rammarthi5790 3 หลายเดือนก่อน

      are u able to login into the twitter?

    • @priyanshumathur7416
      @priyanshumathur7416 3 หลายเดือนก่อน

      @@rammarthi5790 Yes I am

  • @nishah4058
    @nishah4058 4 หลายเดือนก่อน

    I ran this code.. I get error 403 again and again like forbidden error.. what will Be the solution?

    • @sepu321
      @sepu321 3 หลายเดือนก่อน

      i got the same

  • @jimcollins6619
    @jimcollins6619 4 หลายเดือนก่อน

    Why are you using ConfigParser rather than the standard dotenv?

  • @tamassiklosi4138
    @tamassiklosi4138 4 หลายเดือนก่อน

    Great content! Unfortunately I'm getting this error upon authentication: twikit.errors.Forbidden: status: 403, message: "{"errors":[{"code":353,"message":"This request requires a matching csrf cookie and header."}]}"

  • @carolinaarroyo1785
    @carolinaarroyo1785 4 หลายเดือนก่อน

    please need your help i am doing a project and i have this error: Exception has occurred: BadRequest status: 400, message: "{"errors":[{"code":366,"message":"Required input 'LoginAcid' not provided."}]}" Someone know how I can fix it?

  • @MiniMinds-Moments
    @MiniMinds-Moments 4 หลายเดือนก่อน

    Getting this error {"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}

  • @markr87
    @markr87 4 หลายเดือนก่อน

    You are an amazing tutor. Bless you

  • @WillTrades-j7x
    @WillTrades-j7x 4 หลายเดือนก่อน

    Very informative! Would love to see the test on larger data set.

  • @shrimp801
    @shrimp801 4 หลายเดือนก่อน

    Hello! Does this error mean that the account is banned from scraping? Or does twikit have a rate limit since the code is already working then suddenly when i ran it again it had this error: twikit.errors.Unauthorized: status: 401, message: "{"errors":[{"message":"Could not authenticate you","code":32}]}

  • @patrickngare
    @patrickngare 4 หลายเดือนก่อน

    The code is depreciated am getting this error even after using asyncio and await coroutine ""twikit. errors.Forbidden: status: 403, message: ""

  • @exp_d_dragon
    @exp_d_dragon 4 หลายเดือนก่อน

    BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}" //please need your help i am doing a project need this data please how can do that 😭

  • @petermamdouh9435
    @petermamdouh9435 4 หลายเดือนก่อน

    Any solutions ?? twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"

  • @Speedylabs
    @Speedylabs 4 หลายเดือนก่อน

    Thumns up🫡