AI Blog Post Summarization with Hugging Face Transformers & Beautiful Soup Web Scraping

  Рет қаралды 16,899

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Пікірлер: 77
@alokkumar8793
@alokkumar8793 11 ай бұрын
i Cant import pipeline from transformer what to do?
@d3v487
@d3v487 3 жыл бұрын
Very nice explanation. How should I use this for a whole dataset. Please provide if you have any link.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
You can use this for a whole dataset, it chunks it up :)
@upalkundu2872
@upalkundu2872 3 жыл бұрын
Your videos are always useful. The explanation along with the work just makes it WoW. Again, really useful for beginners like me who want to get into data science.
@toriqhasmen9129
@toriqhasmen9129 Жыл бұрын
Nick, the text you have results = soup.find_all('h1','p') only gets the headline of the article, when I tried it. Are you sure it gets all the text from 'soup'. Seems not to work for me. Also can you not use some python library that does html to text directly, instead of removing the html tags this way?
@abhishekshandilya5644
@abhishekshandilya5644 7 ай бұрын
made this last weekend for a hackathon, good little project to add to the arsenal. I’m still concerned about inference time. Is there an algorithmic way we can accelerate it?
@ingoampt
@ingoampt 2 ай бұрын
Can you or someone here tell me how can I make it now as an api and use it in Swift Xcode for an app !
@ThemanB1997
@ThemanB1997 11 ай бұрын
Is this technique viable for hardcopy files if it's not a blog post online.
@testingemailstestingemails4245
@testingemailstestingemails4245 2 жыл бұрын
how to do that trained huggingface model on my own dataset? how i can start ? i don't know the structure of the dataset? help.. very help how I store voice and how to lik with its text how to orgnize that I an looking for any one help me in this planet Should I look for the answer in Mars?
@rachelroselinarul8055
@rachelroselinarul8055 3 жыл бұрын
great job, I am doing research in abstractive text summarization so kindly upload more videos for abstractive text summarization from basics to advance. thank you.
@haardrao4387
@haardrao4387 Жыл бұрын
I am trying to use this model, but i am not able to extract the whole blog. can you please help me out with it?
@Venkatesh-vm4ll
@Venkatesh-vm4ll Жыл бұрын
can we able to ask question and return the summary what we teach
@muhmmedmomen8948
@muhmmedmomen8948 3 жыл бұрын
Here is a like from my side before ending the video 👍 the intro tells alot. Appreciated effort bro.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks a ton @Muhmmed!!
@peshangjaafar8469
@peshangjaafar8469 3 жыл бұрын
thank you so much. from iraq. peace...
@sameerpatel3201
@sameerpatel3201 3 жыл бұрын
Me: Likes the video even before watching it.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
YEAHHHYAAA! Thanks so much @Sameer!
@islamrighi8395
@islamrighi8395 3 жыл бұрын
Thank you very much for this tutorial. For my work I want to summarize pdf text in French, is it possible?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Hmmm, doesn't look like there's an explicit french model. You could use translation to convert to english then summarize and translate back to french though!
@hambaba2
@hambaba2 3 жыл бұрын
Hi Nicholas, thank you for your wonderful videos. Have a question on this one, is it possible you add a feature that not only summarizes for each chunk, also for the same chunk it provide a number ( maybe between -1 to 1) that reflects the sentiment for that chunk , was it Positive or negative, in the form of a dataframe with two columns , "Summary", "Sentiment". Thanks again for awesome work you are doing.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Could definitely do that, try passing the chunk to something like this: kzbin.info/www/bejne/qavGq6OdhKqXjtU
@sarahelizabethnajeraespino7464
@sarahelizabethnajeraespino7464 2 жыл бұрын
This is so amazingl! I am a complete beginner with data science but seems so useful! Would it be possible to do the same but for a list of URLs exported in a CSV file?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Sure could! Scrape them first using BeautifulSoup then run the summarizer over it!
@the_python_guide
@the_python_guide Жыл бұрын
Hey nick, here is another way to extract chunks. for i in range(len(res_arr)): length=len(res_arr[i].split(' ')) if(length+count
@vendroid6193
@vendroid6193 3 жыл бұрын
I can't thank you enough for all these videos Also as a suggestion for the next video, I would like to suggest building a chatbot from scratch Keep up the good work Sir
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
I think I've got a walk through using Watson Assistant as one of my earlier videos!
@CODTALES-KILLSTREAKS
@CODTALES-KILLSTREAKS 3 жыл бұрын
Can you do this for tree care blog posts? I’m interested in seeing a summary of tree care posts
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Definitely, grab some tree care blog posts and give it a crack!
@Maicolacola
@Maicolacola 3 жыл бұрын
Hi Nicholas, thanks for putting together an incredible tutorial. I was able to get this going in no time. I managed to use your script (with slight modifications) to summarize an approximately 10.5k scientific article down to 1.4k. Which brings me to my question. I set the max length to 300, but it returned a summary of 1.4k words. Do you know what might be going on here? I'm going to make a loop that keeps repeatedly runs the summarize code until the length of the text is below 300 words. I'll report back!
@Maicolacola
@Maicolacola 3 жыл бұрын
Update: I made a while loop that would keep going until the length of the summary was below the max_length I specified. It took two runs instead of one to achieve that. Despite it being a summary of a summary, it reads really close to the actual abstract. I think with some fine tuning, it could get most of the way there.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
THIS IS AWESOME, yeah I've had mixed results with setting max_length and even min_length. Need to do some more digging into it. Wold love to hear mroe about your use case!
@anirbanpatra3017
@anirbanpatra3017 2 жыл бұрын
Thanks For the Tutorial.I am really struggling with the chunking part.Is there a way I can understand it in a better way?? Is it possible to deploy this on streamlit??
@sebastianmayer5418
@sebastianmayer5418 3 жыл бұрын
Thank you very much for this tutorial. I tried it with a very long text. I chunked the text (length of chunks < 500 words) and parse the chunks to the Transformer, like you did. My text has more than 20 chunks. After the input of the 16th chunk to the transformer i get an index-out of-range-error. (IndexError: index out of range in self) Does this transformer has a limit there? Do you have a solution for this problem? Thank you for response.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Weird, does it work with 15 chunks?
@sebastianmayer5418
@sebastianmayer5418 3 жыл бұрын
@@NicholasRenotte yes
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@sebastianmayer5418 would it work if you break it up and do it in two runs?
@jorgerios4091
@jorgerios4091 Жыл бұрын
Hi Nicho, I learned a lot from your vid, I don't know if the YT algo takes this in consideration but I wanted to say it anyway: Thank you.
@dab0927
@dab0927 3 жыл бұрын
Great tutorial and excellent explanations from beginning to end. My question for you is can you take several articles and produce 1 summary. In other words, it would be great to have a single summary of several related articles. Is that possible? If so, how is it different from the process up walked through in this video?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
You could generate a summary for each. If you were looking at extracting key topics from each, topic discovery might be a better technique.
@upalkundu2872
@upalkundu2872 3 жыл бұрын
Maybe append the result texts and run the summarizer on the extended one?
@syedalinaqi6274
@syedalinaqi6274 3 жыл бұрын
Thanks for the great content. Channel subscribed!!! Can you please answer a question. Is it possible to create your own Language Model by using the web scraping data ? and then later do the transfer learning with Hugging Face transformers ?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Sure can, you can fine tune the underlying language models!
@syedalinaqi6274
@syedalinaqi6274 3 жыл бұрын
@@NicholasRenotte Can you please make a video on how to do it? fine tune Language model using GPT2. Thanks in advance.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@syedalinaqi6274 definitely, I've got it planned!
@slowedReverbJunction
@slowedReverbJunction 3 жыл бұрын
I don't code in python and all just JavaScript , but this one seems interesting , can a noob in NLP like me can try this ??
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
If you can code in JS, you can probably code in anything 😅. Definitely give it a crack, you'll love it. Python ML and JS are the perfect combo!
@slowedReverbJunction
@slowedReverbJunction 3 жыл бұрын
@@NicholasRenotte that's gr8 to know I will definitely give it a try now
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@slowedReverbJunction awesome stuff!
@captainng97
@captainng97 3 жыл бұрын
Hi, is this Abstractive or Extractive? 😅
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Heya @Ng, it's using the same model as before which I believe is Extractive!
@muditrustagi5775
@muditrustagi5775 3 жыл бұрын
this was much needed!! Thank you !!!!!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks for checking it out!!
@MyChris128
@MyChris128 3 жыл бұрын
Great video, very well explained 👍
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much @Chris D!
@rokeyasiddiqua9375
@rokeyasiddiqua9375 3 жыл бұрын
awesome...! thanks a lot
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Anytime @Rokeya, thanks for checking it out!
@thepythonprogrammer4338
@thepythonprogrammer4338 2 жыл бұрын
Hats off brother love your videos
@ruchisehgal893
@ruchisehgal893 2 жыл бұрын
Hi Nick. This was a really great blog, but what if i have write the data in a word file(docx file) and have to put the sentences in bullet and add margins?
@ruchisehgal893
@ruchisehgal893 2 жыл бұрын
Also, there is an issue when a number that appears like 18.8 or 9.1 then this data is separated in different lines if we have to bullet it into different points. Can you let me know how to solve this
@ElTallerDeTD
@ElTallerDeTD 3 жыл бұрын
Amazing video! 🤩
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much, glad you enjoyed it!
@henkhbit5748
@henkhbit5748 3 жыл бұрын
As always, great intro. But as you know, not all viewers have a kangaroo 😎in their backyard and have English as their default language. It might be helpful if you're doing NLP to give some side notes about other languages. BTW: I did a small test and provided Dutch text without translation. And also translate the same text into English as input, summarize and back to Dutch. I compare both summaries and both versions are almost the same. In the non-translated version, a few words have been chopped.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
😂😂 I had a good laugh at the kangaroo reference, was going to say even I don't have kangaroos in my yard. But tbh, I've got some living 20 minutes away from me so that argument was null and void. Wait so in the non-translated version it didn't really summarize?
@diegocaumont5677
@diegocaumont5677 3 жыл бұрын
dope dope dope
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Yeahyyaa, thanks @Diego!
@Jandoesrun
@Jandoesrun 3 жыл бұрын
I'm really thankful for your videos. You're my life savior for my thesis research. Can you make a video on how to use MediaPipe by google for hand gesture recorginition? Also, I'm really at a loss for how I can do my thesis. Can I consult with you? I'm trying to make use of the hand landmark values to classify certain words for sign language. I'm confused whether to use LSTMs, Transformers, BERT , GPT2. This is honestly overwhelming.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Yup, definitely! It'll be coming soon!
@Jandoesrun
@Jandoesrun 3 жыл бұрын
@@NicholasRenotte Thank you very much! Sir Nicholas, I'm trying to research a tensor flow implementation of GPT models. Do you have any ideas?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@Jandoesrun hot off the press: kzbin.info/www/bejne/mXncnoCqZriEpJo it uses PyTorch but you can change the backend to TF as well
@amitdutta3875
@amitdutta3875 3 жыл бұрын
is it possible to extract data like email phone number address from a text? Can You make a video on that?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Definitely, you could use something like OCR: kzbin.info/www/bejne/kIeukoqGjJ6ih7s
@amitdutta3875
@amitdutta3875 3 жыл бұрын
@@NicholasRenotte thank you sir but i was looking for CV or resume parsing to get only important text like email id phone number
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@amitdutta3875 oh, you could probably extract that using regex or using a text classifier!
@amitdutta3875
@amitdutta3875 3 жыл бұрын
Thank you
@amitdutta3875
@amitdutta3875 3 жыл бұрын
Actually I heard about entity recognition
@alexandermedina4950
@alexandermedina4950 Жыл бұрын
Great content, as usual, thank you for this.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 10 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 132 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 22 МЛН
What is Hugging Face? - Machine Learning Hub Explained
10:05
NeuralNine
Рет қаралды 26 М.
Web Scraping with ChatGPT is mind blowing 🤯
8:03
Code Bear
Рет қаралды 51 М.
Sentiment Analysis with BERT Neural Network and Python
31:56
Nicholas Renotte
Рет қаралды 123 М.
Web Scraping with Python and BeautifulSoup is THIS easy!
15:51
Thomas Janssen | Tom's Tech Academy
Рет қаралды 35 М.
Machine Learning Projects You NEVER Knew Existed
15:20
Nicholas Renotte
Рет қаралды 176 М.
Step-by-Step Guide To Creating a $500/Day Blog (Using AI)
53:02
Buildapreneur
Рет қаралды 301 М.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 994 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 10 МЛН