Automatic Summarization using Deep Learning | Abstractive Summarization with Pegasus

  Рет қаралды 40,535

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Пікірлер: 100
@soumyadeepnag6300
@soumyadeepnag6300 2 жыл бұрын
Thanks for explaining the video nicely. But, does the pegasus model always generate one line of summary? Is there any way we can increase the number of summary lines?
@user-og2cw5yv2m
@user-og2cw5yv2m Жыл бұрын
hey have you found how to generate multiple lines
@naitikshah7969
@naitikshah7969 3 жыл бұрын
Whoever is getting an error while creating the tokenizer in step 1, run this command on your terminal: pip install sentencepiece Great video Nicholas, thanks mate!
@satoshinakamoto5710
@satoshinakamoto5710 3 жыл бұрын
Also restart kernel and run all cells if you get "None type error". Sometimes the cell that downloads the pegasus model fails.
@ashikurrahman-ai8227
@ashikurrahman-ai8227 3 жыл бұрын
@@satoshinakamoto5710 Thanks mate
@vaishnavimore754
@vaishnavimore754 2 жыл бұрын
Thanks
@erfansthought
@erfansthought 2 жыл бұрын
How to make more than 1 sentence summary? It is possible to configure it to generate a summary of specified sentences like 10 sentence summary?
@pradhansomu4100
@pradhansomu4100 3 жыл бұрын
Bro please make a video on creating custom dataset for pose estimation and which architecture will be best to train
@BS-ob3hp
@BS-ob3hp 3 жыл бұрын
Hi Nicholas, thank you for your content here on youtube :)! I was just wondering if I can also use Preview or Stable, since LTS is not supported on a mac. Thanks!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Yup, suggest using stable!
@mohammadabdulkadir8799
@mohammadabdulkadir8799 Жыл бұрын
Am getting this error when am trying to load the tokkenizer how can i resolve it TypeError Traceback (most recent call last) Cell In[25], line 2 1 # Load tokenize ----> 2 tokenizer = PegasusTokenizer.from_pretrained("google/pegasus-large") TypeError: 'NoneType' object is not callable
@VladimirSkultetyOfficial
@VladimirSkultetyOfficial 3 жыл бұрын
Very good channel and videos. Thank you Nicholas!
@mdrahatislamkhan9966
@mdrahatislamkhan9966 2 жыл бұрын
cant install the torch. searched a lot but can't find the solution tried lots of things but got this error "No matching distribution found for torch" Please help me fix this problem.
@Powercube7
@Powercube7 3 жыл бұрын
Pegasus? More like Pega SUS 😳 For real tho, this is actually really helpful, now i don't have to read anymore thanks fam 😂
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
I think you mean....Mega SUS?! Hahaha, hell yeah, bail on all that reading rubbish!
@Powercube7
@Powercube7 3 жыл бұрын
@@NicholasRenotte sussy baka 😳😳😳
@arshdeepsingh5950
@arshdeepsingh5950 3 жыл бұрын
love you sir must say your brain is awesome.
@Manideep.
@Manideep. 3 жыл бұрын
when i import the model i am getting AttributeError: 'Version' object has no attribute 'major'
@priyamkakati4427
@priyamkakati4427 3 жыл бұрын
Amazng content as usual!
@anonymousking2053
@anonymousking2053 3 жыл бұрын
Nicholas why don't you start reinforcement learning for gaming, everybody wants it. by the way love your videos
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Ik ik, just gotta get back to it.
@Powercube7
@Powercube7 3 жыл бұрын
He is doing his best, we should have some patience. Quality over quantity!
@urinater
@urinater 3 жыл бұрын
My results keep on repeating the first sentence. Will try other models
@deepakkumarjha
@deepakkumarjha 3 жыл бұрын
Hey, would you mind making a video on how the model could be fine tuned for a custom text dataset, because I read the paper and couldn't do it. It would also be a good continuation to this video.
@rudreshmehta6510
@rudreshmehta6510 2 жыл бұрын
Hey, Did you find the way to do that?
@shreevinayaka8219
@shreevinayaka8219 3 ай бұрын
sir how to increase the number of words or how to keep it variable
@e_souhil
@e_souhil 3 жыл бұрын
thanks, it was so helpful can you do a video on how we can fine-tune the pegasus model on a different dataset?
@rudreshmehta6510
@rudreshmehta6510 2 жыл бұрын
Hey, Did you find the way to do that?
@vent_srikar7360
@vent_srikar7360 Жыл бұрын
@@rudreshmehta6510 did you find it ?
@shreeshaaithal-
@shreeshaaithal- 3 жыл бұрын
First I thought that you are talking the Pegasus virus then ooh ok summarize Pegasus 😂
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
😂
@swishrsplitr
@swishrsplitr 8 ай бұрын
great video, thanks - are there any summarization models that accept more than 1k tokens as input?
@hosdvz1
@hosdvz1 Жыл бұрын
hi there. why do we bother ourselves to summarize just 512 tokens :)
@satvikmanchanda7090
@satvikmanchanda7090 5 ай бұрын
reading research papers can really be hard, wish there was some trick
@henkhbit5748
@henkhbit5748 3 жыл бұрын
Samenvattend, wederom een mooie introductie in NLP met de "vliegende paard" 👍
@AutumnRainWish
@AutumnRainWish 2 жыл бұрын
6:18 pip install transformers==4.11.3 if you are getting an error ImportError: cannot import name 'PegasusForConditionalGeneration' from 'transformers'
@sanchitafusiondance
@sanchitafusiondance Жыл бұрын
thank u so much.. u have no idea how much u saved me..
@asprakmantab
@asprakmantab Жыл бұрын
can we set the length of summary?
@akshay3361
@akshay3361 3 жыл бұрын
Can you make a text summarizer using gpt 3 or 2?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Could try!
@rahil1575
@rahil1575 2 жыл бұрын
Is there any way to specify the length of summary
@user-og2cw5yv2m
@user-og2cw5yv2m Жыл бұрын
hey have you found it?
@idkidk1774
@idkidk1774 3 жыл бұрын
Bro pls make a python chat bot with deep learning and actions like: join school class answer ok sir and join the class
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Alrighty, will build it into the plan!
@idkidk1774
@idkidk1774 3 жыл бұрын
You are insane bro
@trinitaroy5084
@trinitaroy5084 2 жыл бұрын
Can you also show how do you fine tune the Pegasus model with a custom dataset for text summarization?
@alexandregagne4151
@alexandregagne4151 3 жыл бұрын
Like always, thank you. This channel is soooo good
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Cheers @Alexandre!
@shreevinayaka8219
@shreevinayaka8219 3 ай бұрын
@@NicholasRenotte sir how to increase the number of words or how to keep it variable
@hilariouzclips1235
@hilariouzclips1235 3 жыл бұрын
Great video, Nicholas.
@vishnureddy7543
@vishnureddy7543 3 жыл бұрын
Thanks Nick! Also how do I add a dataset to it instead of a piece of text?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
For summarization? This is very much focused on NLP. For structured data I would be focused on using Pandas, got a crash course on the channel!
@davidzhang4825
@davidzhang4825 Жыл бұрын
Is Pegasus the best model for text summarization? if not which model is the best?
@debatradas9268
@debatradas9268 2 жыл бұрын
thank you so much
@ryanw8765
@ryanw8765 Жыл бұрын
When companies build text summarization models like this one, do they create their own model and launch it for their app or do they generally use pre-existing models?
@ahmedalameldien765
@ahmedalameldien765 3 жыл бұрын
hi nicholas, i really appreciate your video. thank you for this very informative video. could you make another one of how to fine tuning a custom text dataset ?
@srishtigureja6534
@srishtigureja6534 3 жыл бұрын
Great video! thanks 🎉 I was unable to understand the last part, what fine tuning can be done exactly for the model to perform better?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Can fine tune the underlying model on a dataset of your choice! Google did it on a bunch of different text corpuses, e.g. for Journals you could use this model: huggingface.co/google/pegasus-pubmed
@srishtigureja6534
@srishtigureja6534 3 жыл бұрын
@@NicholasRenotte Thanks!
@rohankherath
@rohankherath 3 жыл бұрын
Thank You Nicho...
@lahiruneranjanrathnayaka3665
@lahiruneranjanrathnayaka3665 3 жыл бұрын
great video :D. How can we implement this for another language ?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Would probably look at converting to english first, summarizing then converting back. One of the other subscribers mentioned the summarization in other languages sucks, would try that approach instead!
@lahiruneranjanrathnayaka3665
@lahiruneranjanrathnayaka3665 3 жыл бұрын
@@NicholasRenotte Thanks. I'll give a try :D
@ashleysami1640
@ashleysami1640 3 жыл бұрын
Don't lie. Bet you love Jane Austin.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
M8 😂
@alexandregagne4151
@alexandregagne4151 3 жыл бұрын
I have a little question. I would like to create a model to recognize a person, but everything I find online and on youtube uses Face-recognition. However, I would like my model to be able to recognize a person, not necessarily by their face but also by a tattoo or a feature of their body and etc. What do you think would be the best technique to accomplish this task? Would a simple image classifier do the trick?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Aside from the ethical implications, you could look at using a siamese network. Keep in mind it requires a ton of data if you're to do it on more than just faces!
@alexandregagne4151
@alexandregagne4151 3 жыл бұрын
@@NicholasRenotte That's what I understood, I need a lot of data. To practice a little, is it possible to use the landmarks (face) to detect and recognize a person with mediapipe? I'm trying to use your method on the sign languages video, but I get an accuracy of around 27% after 4000 epochs, no good :(
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
@@alexandregagne4151 might be a bit late to this, have you checked out the facial rec tutorial?
@mahdimahdavi1341
@mahdimahdavi1341 Жыл бұрын
thank's
@aliffnabil5542
@aliffnabil5542 3 жыл бұрын
yooooo this is sick!
@TejrajParab
@TejrajParab 3 жыл бұрын
I remember that nightmarish novel.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Don't even get me started. Honestly I hated every minute of that class and I definitely made it known. What a complete waste of time....if only i knew back then I'd end up coding, would've bailed completely!
@utkar1
@utkar1 2 жыл бұрын
Hey thanks man! I'm wondering is there is way we can create book summaries as well with one of these transformers?
@TKollaKid
@TKollaKid Жыл бұрын
I learned so much from this video. Liked and subscribed. Thank you, Nicholas!
@idkidk1774
@idkidk1774 3 жыл бұрын
love it
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
🙏🙏🙏
@litttlemooncream5049
@litttlemooncream5049 6 ай бұрын
mark! gonna take a try. many thanks
@Brian5094
@Brian5094 2 жыл бұрын
Really dope! I was looking for the turtorial to guide me through the summarization model and your video has extremely high quality and super practical! I have a question that is abstractive summarization need to be fine-tuned? If so, how can we do it? :D
@detour1055
@detour1055 2 жыл бұрын
Just found you today...absolutely love your content and wide range of projects. I'm not a programmer but I'm looking to complete some projects very similar to what you've showcased in your videos. Are you available to hire?
@erfansthought
@erfansthought 3 жыл бұрын
I am getting 'NoneType' object is not callable after this code in colab tokens = tokenizer(text, truncation=True, padding="longest", return_tensors="pt") Solution please. Great Videos. Keep it up.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
What's in the text?
@erfansthought
@erfansthought 3 жыл бұрын
@@NicholasRenotte TypeError Traceback (most recent call last) in () ----> 1 tokens = tokenizer(text, truncation=True, padding="longest", return_tensors="pt") TypeError: 'NoneType' object is not callable
@qwertl99
@qwertl99 3 жыл бұрын
running into same problem
@qwertl99
@qwertl99 3 жыл бұрын
reloading jupyter fixed my issue :)
@erfansthought
@erfansthought 3 жыл бұрын
@@qwertl99 Didn't work for me in colab
@guimaraesalysson
@guimaraesalysson Жыл бұрын
Great video
@mannatsiddiqui5499
@mannatsiddiqui5499 2 жыл бұрын
Getting error TypeError Traceback (most recent call last) in () 4 model = PegasusForConditionalGeneration.from_pretrained("google/pegasus-xsum") 5 # Load tokenizer ----> 6 tokenizer = PegasusTokenizer.from_pretrained("google/pegasus-xsum") TypeError: 'NoneType' object is not callable Please tell how should I resolve it
@jetakota
@jetakota Жыл бұрын
PegasusTokenizer.from_pretrained('google/pegasus-xsum') returns None. PegasusTokenizer also returns None for 'google/pegasus-large'
@vent_srikar7360
@vent_srikar7360 Жыл бұрын
hey iam getting this error of -: tokenizer = PegasusTokenizer.from_pretrained("google/pegasus-xsum") TypeError: 'NoneType' object is not callable any idea whats the mistake ?
@laurentprea7746
@laurentprea7746 3 жыл бұрын
Who else is having issues installing pytorch? The error is shown below ERROR: No matching distribution found for torch==1.8.2+cu111
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
If copied directly from the PT site, you should be good to go. Possibly another version of Python required? I used 3.7.3 in the video with no issues.
@joshuaemmanuelaudu4799
@joshuaemmanuelaudu4799 Жыл бұрын
I really hope you reply to this. Thanks so much for.this project. It worked before.. now for the autotokenizer.from_pretrained(google/pegasus-xsum) .. it's giving an error that filenotfound
Machine Learning Projects You NEVER Knew Existed
15:20
Nicholas Renotte
Рет қаралды 176 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 58 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 4,1 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 67 МЛН
How to Summarize Text Using Python and Machine Learning
22:25
The Best Way to do Topic Modeling in Python - Top2Vec Introduction and Tutorial
15:08
Python Tutorials for Digital Humanities
Рет қаралды 29 М.
What is Hugging Face? - Machine Learning Hub Explained
10:05
NeuralNine
Рет қаралды 26 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 58 МЛН