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 Жыл бұрын
hey have you found how to generate multiple lines
@naitikshah79693 жыл бұрын
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!
@satoshinakamoto57103 жыл бұрын
Also restart kernel and run all cells if you get "None type error". Sometimes the cell that downloads the pegasus model fails.
@ashikurrahman-ai82273 жыл бұрын
@@satoshinakamoto5710 Thanks mate
@vaishnavimore7542 жыл бұрын
Thanks
@erfansthought2 жыл бұрын
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?
@pradhansomu41003 жыл бұрын
Bro please make a video on creating custom dataset for pose estimation and which architecture will be best to train
@BS-ob3hp3 жыл бұрын
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!
@NicholasRenotte3 жыл бұрын
Yup, suggest using stable!
@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
@VladimirSkultetyOfficial3 жыл бұрын
Very good channel and videos. Thank you Nicholas!
@mdrahatislamkhan99662 жыл бұрын
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.
@Powercube73 жыл бұрын
Pegasus? More like Pega SUS 😳 For real tho, this is actually really helpful, now i don't have to read anymore thanks fam 😂
@NicholasRenotte3 жыл бұрын
I think you mean....Mega SUS?! Hahaha, hell yeah, bail on all that reading rubbish!
@Powercube73 жыл бұрын
@@NicholasRenotte sussy baka 😳😳😳
@arshdeepsingh59503 жыл бұрын
love you sir must say your brain is awesome.
@Manideep.3 жыл бұрын
when i import the model i am getting AttributeError: 'Version' object has no attribute 'major'
@priyamkakati44273 жыл бұрын
Amazng content as usual!
@anonymousking20533 жыл бұрын
Nicholas why don't you start reinforcement learning for gaming, everybody wants it. by the way love your videos
@NicholasRenotte3 жыл бұрын
Ik ik, just gotta get back to it.
@Powercube73 жыл бұрын
He is doing his best, we should have some patience. Quality over quantity!
@urinater3 жыл бұрын
My results keep on repeating the first sentence. Will try other models
@deepakkumarjha3 жыл бұрын
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.
@rudreshmehta65102 жыл бұрын
Hey, Did you find the way to do that?
@shreevinayaka82193 ай бұрын
sir how to increase the number of words or how to keep it variable
@e_souhil3 жыл бұрын
thanks, it was so helpful can you do a video on how we can fine-tune the pegasus model on a different dataset?
@rudreshmehta65102 жыл бұрын
Hey, Did you find the way to do that?
@vent_srikar7360 Жыл бұрын
@@rudreshmehta6510 did you find it ?
@shreeshaaithal-3 жыл бұрын
First I thought that you are talking the Pegasus virus then ooh ok summarize Pegasus 😂
@NicholasRenotte3 жыл бұрын
😂
@swishrsplitr8 ай бұрын
great video, thanks - are there any summarization models that accept more than 1k tokens as input?
@hosdvz1 Жыл бұрын
hi there. why do we bother ourselves to summarize just 512 tokens :)
@satvikmanchanda70905 ай бұрын
reading research papers can really be hard, wish there was some trick
@henkhbit57483 жыл бұрын
Samenvattend, wederom een mooie introductie in NLP met de "vliegende paard" 👍
@AutumnRainWish2 жыл бұрын
6:18 pip install transformers==4.11.3 if you are getting an error ImportError: cannot import name 'PegasusForConditionalGeneration' from 'transformers'
@sanchitafusiondance Жыл бұрын
thank u so much.. u have no idea how much u saved me..
@asprakmantab Жыл бұрын
can we set the length of summary?
@akshay33613 жыл бұрын
Can you make a text summarizer using gpt 3 or 2?
@NicholasRenotte3 жыл бұрын
Could try!
@rahil15752 жыл бұрын
Is there any way to specify the length of summary
@user-og2cw5yv2m Жыл бұрын
hey have you found it?
@idkidk17743 жыл бұрын
Bro pls make a python chat bot with deep learning and actions like: join school class answer ok sir and join the class
@NicholasRenotte3 жыл бұрын
Alrighty, will build it into the plan!
@idkidk17743 жыл бұрын
You are insane bro
@trinitaroy50842 жыл бұрын
Can you also show how do you fine tune the Pegasus model with a custom dataset for text summarization?
@alexandregagne41513 жыл бұрын
Like always, thank you. This channel is soooo good
@NicholasRenotte3 жыл бұрын
Cheers @Alexandre!
@shreevinayaka82193 ай бұрын
@@NicholasRenotte sir how to increase the number of words or how to keep it variable
@hilariouzclips12353 жыл бұрын
Great video, Nicholas.
@vishnureddy75433 жыл бұрын
Thanks Nick! Also how do I add a dataset to it instead of a piece of text?
@NicholasRenotte3 жыл бұрын
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 Жыл бұрын
Is Pegasus the best model for text summarization? if not which model is the best?
@debatradas92682 жыл бұрын
thank you so much
@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?
@ahmedalameldien7653 жыл бұрын
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 ?
@srishtigureja65343 жыл бұрын
Great video! thanks 🎉 I was unable to understand the last part, what fine tuning can be done exactly for the model to perform better?
@NicholasRenotte3 жыл бұрын
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
@srishtigureja65343 жыл бұрын
@@NicholasRenotte Thanks!
@rohankherath3 жыл бұрын
Thank You Nicho...
@lahiruneranjanrathnayaka36653 жыл бұрын
great video :D. How can we implement this for another language ?
@NicholasRenotte3 жыл бұрын
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!
@lahiruneranjanrathnayaka36653 жыл бұрын
@@NicholasRenotte Thanks. I'll give a try :D
@ashleysami16403 жыл бұрын
Don't lie. Bet you love Jane Austin.
@NicholasRenotte3 жыл бұрын
M8 😂
@alexandregagne41513 жыл бұрын
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?
@NicholasRenotte3 жыл бұрын
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!
@alexandregagne41513 жыл бұрын
@@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 :(
@NicholasRenotte2 жыл бұрын
@@alexandregagne4151 might be a bit late to this, have you checked out the facial rec tutorial?
@mahdimahdavi1341 Жыл бұрын
thank's
@aliffnabil55423 жыл бұрын
yooooo this is sick!
@TejrajParab3 жыл бұрын
I remember that nightmarish novel.
@NicholasRenotte3 жыл бұрын
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!
@utkar12 жыл бұрын
Hey thanks man! I'm wondering is there is way we can create book summaries as well with one of these transformers?
@TKollaKid Жыл бұрын
I learned so much from this video. Liked and subscribed. Thank you, Nicholas!
@idkidk17743 жыл бұрын
love it
@NicholasRenotte3 жыл бұрын
🙏🙏🙏
@litttlemooncream50496 ай бұрын
mark! gonna take a try. many thanks
@Brian50942 жыл бұрын
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
@detour10552 жыл бұрын
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?
@erfansthought3 жыл бұрын
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.
@NicholasRenotte3 жыл бұрын
What's in the text?
@erfansthought3 жыл бұрын
@@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
@qwertl993 жыл бұрын
running into same problem
@qwertl993 жыл бұрын
reloading jupyter fixed my issue :)
@erfansthought3 жыл бұрын
@@qwertl99 Didn't work for me in colab
@guimaraesalysson Жыл бұрын
Great video
@mannatsiddiqui54992 жыл бұрын
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 Жыл бұрын
PegasusTokenizer.from_pretrained('google/pegasus-xsum') returns None. PegasusTokenizer also returns None for 'google/pegasus-large'
@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 ?
@laurentprea77463 жыл бұрын
Who else is having issues installing pytorch? The error is shown below ERROR: No matching distribution found for torch==1.8.2+cu111
@NicholasRenotte3 жыл бұрын
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 Жыл бұрын
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