Text Classification Using BERT & Tensorflow | Deep Learning Tutorial 47 (Tensorflow, Keras & Python)

Text Classification Using BERT & Tensorflow | Deep Learning Tutorial 47 (Tensorflow, Keras & Python)

codebasics

2 года назад

159,527 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

sanity
sanity - 05.11.2023 01:39

dude you are awesome

Ответить
Sandesh Deshmukh
Sandesh Deshmukh - 03.11.2023 11:05

Well Explained ..Thank you for this wonderful explanation 👏

Ответить
Ajit Kulkarni
Ajit Kulkarni - 07.10.2023 13:56

one question: we had 747 data points for each class, so how in confusion materix values are less as 187

Ответить
Hadiana Sliwa
Hadiana Sliwa - 22.09.2023 16:59

when running this code
return bert_encoder(preprocessor)['pooled_output']

I'm getting an error :

TypeError: Exception encountered when calling layer 'keras_layer_7' (type KerasLayer).

pruned(input_ids, input_mask, segment_ids) missing required arguments: input_ids, segment_ids.

Call arguments received by layer 'keras_layer_7' (type KerasLayer):
• inputs={'input_type_ids': 'tf.Tensor(shape=(2, 128), dtype=int32)', 'input_word_ids': 'tf.Tensor(shape=(2, 128), dtype=int32)', 'input_mask': 'tf.Tensor(shape=(2, 128), dtype=int32)'}
• training=None

Ответить
Geoffroy Daumer
Geoffroy Daumer - 05.09.2023 14:18

ModuleNotFoundError: No module named 'tensorflow_text'

Ответить
Shanu Mathew
Shanu Mathew - 01.09.2023 13:01

Can you do Spoiler Detection with BERT ? I have been trying for some time but I am not able to.

Ответить
Drona Charyulu
Drona Charyulu - 25.07.2023 20:42

can we use the hidden layers(only CLS) generated from the bert model as a features , to train the tfdistilled bert for binary classification task

Ответить
Pearl Rodrigues
Pearl Rodrigues - 20.07.2023 07:20

Thank you so much for your videos! But i have a doubt since balancing the data in multi label classification doesn't help cause words have similar meanings ,what can be done?

Ответить
sulaiman khan
sulaiman khan - 15.07.2023 08:11

Sir, I need code as Classifier without sequential layers.

Ответить
sulaiman khan
sulaiman khan - 15.07.2023 08:09

very interested

Ответить
Nishant Kumar
Nishant Kumar - 10.07.2023 21:19

musk melon for Elon musk , hence 0.84 cosine similarity

Ответить
Christianah Oyewale
Christianah Oyewale - 30.06.2023 15:19

Thank you so much for this video. This is very helpful for my master's project. Please the model you built in the video, is it a fine-tuning of the last layer of BERT or completely retraining all BERT layers?

Ответить
AOMO
AOMO - 26.06.2023 12:08

HI, thank you for good video. please have talked before about Elmo?

Ответить
roopa gowda
roopa gowda - 21.06.2023 02:56

Hello...can you please confirm if removal of stopwords,numbers,stemming etc is required in this case ?

Ответить
Ali Hekmat
Ali Hekmat - 29.05.2023 18:25

Perfectly Expalined! Thanks a lot.

Ответить
Kathir A
Kathir A - 14.04.2023 09:40

I am getting No matching distribution found for tensorflow_text==2.12 error while installing tensorflow_text using pip.Could you please help on this.Thank you

Ответить
Kathir A
Kathir A - 14.04.2023 09:39

Thanks for sharing this nice well explained concept.

Ответить
rutvi sheth
rutvi sheth - 11.04.2023 06:18

if my task is classification with Bert and RNN-specially BiGRU then what output of BERT I need to use ? Pooled or sequential? If I am using Pooled then I am getting error of dimension as rnn requires 3d tensor. Please help with it.

Ответить
Mahedi Hassan Shawon
Mahedi Hassan Shawon - 25.03.2023 01:31

Underrated channel tbh..He needs more recognition. Thanks a lot for supporting us.

Ответить
champ
champ - 26.02.2023 11:15

helo sir, I want to know one thing for code mixing language like hindi in english letter does Muril BERT understand this hinglish which is english letter wriiten hindi pronounciation

Ответить
Phoenix
Phoenix - 21.02.2023 07:44

Oh thank god, finally someone who explains well AND covers the topic in enough depth to be useful.

Ответить
Python King_STEM
Python King_STEM - 03.02.2023 16:51

Man, You are a legend!

Ответить
Varun S
Varun S - 26.01.2023 21:28

Great video. I am facing an issue installing tensorflow_hub: cannot import name 'deserialize_keras_object' from partially initialized module 'keras.saving.legacy.serialization' . Any thoughts?

Ответить
Beatriz Bosques
Beatriz Bosques - 25.01.2023 19:50

Thank you so much for your videos! You don't know how much you have helped me. I was really scared to dive into transformers but you have made it very easy to understand.

Ответить
Chinna anjaneyulu Dirisala
Chinna anjaneyulu Dirisala - 12.01.2023 01:18

Thank you for explaining Bert model. I am not why the model is taking 2 hours for each epoch, has anyone experienced the same ?

Ответить
Harsh Vardhan
Harsh Vardhan - 02.01.2023 17:35

Thanks for this nice tutorial !

Ответить
GAUTAM KUMAR
GAUTAM KUMAR - 23.12.2022 15:14

Which algorithm we are using for the text classification here? Can anyone tell me please?

Ответить
MC
MC - 12.12.2022 21:00

wonderful!! but... what if we have 3 or more categories instead of just 2? Thanks a lot

Ответить
Govind Soni
Govind Soni - 03.12.2022 19:40

I am little bit confused; each sentence length should be 128 and each word be of 768 dimensions..

Ответить
Rohit Narwal
Rohit Narwal - 25.11.2022 07:21

I can't find the dataset can someone help me

Ответить
COMPUTER SOLUTIONZ
COMPUTER SOLUTIONZ - 05.11.2022 10:05

Thank you so much sir pls where can I find the code?

Ответить
Arun Vijay
Arun Vijay - 30.10.2022 19:41

Thanks for the video, I am getting an error saying failed to covert Numpy array to Tensor.

Ответить
Tanusree Nath
Tanusree Nath - 28.10.2022 11:34

Can you share the dataset link

Ответить
kisholoy mukherjee
kisholoy mukherjee - 16.10.2022 20:12

Thanks for the great explanation. Really heplful

Ответить
Natalia Revenga
Natalia Revenga - 07.10.2022 10:50

Thank you very much! You really helped me!

Ответить
Subrata Saha
Subrata Saha - 04.10.2022 14:46

Sir If it is a multi class classification the where should I change the code

Ответить
Adrian Gray
Adrian Gray - 28.09.2022 18:25

I knew Jeff Bezos and banana has a lot in common 🤣 Great video btw

Ответить
Theo Valentino
Theo Valentino - 01.09.2022 02:26

you didnt show how to save a trained model

Ответить
Muhammad Aminkhan
Muhammad Aminkhan - 26.08.2022 10:24

Thank you sir for your valuable lectures. Can you direct me to one of your content about XLNet Model?

Ответить
Guillaume GUITARIAN
Guillaume GUITARIAN - 18.08.2022 05:27

Hi, thanks for the Vid.
Is it possible to make that code run with and AMD GPU ?

Ответить
Sudarshana Ramireddy
Sudarshana Ramireddy - 01.08.2022 16:52

Is there a code for NLP Model without labels (i mean Unsupervised ML) ?, i am struggling to find ;)

Ответить
max w
max w - 19.07.2022 23:43

Very useful video, thanks a lot!

Ответить
Tanmay paranjape
Tanmay paranjape - 19.07.2022 13:42

Can you please show how to plot the loss graph?

Ответить
Yonah Citron
Yonah Citron - 11.07.2022 17:46

please do more in-depth stuff on NLP!!

Ответить
Francis Atoyebi
Francis Atoyebi - 22.06.2022 18:52

Please help,
How can I input SMOTE for oversampling in this model?

Ответить
Max Hüttmann
Max Hüttmann - 20.06.2022 17:47

You are awesome, this is first actual slow enough and easy BERT starting video i've seen and suited me very much!

Ответить
Ashwini Deshmukh
Ashwini Deshmukh - 20.06.2022 17:22

sir what if i have multilabel dataset like 6 labels

Ответить
Umar Ghaffar
Umar Ghaffar - 16.06.2022 12:45

Hi sir, Thank you for this amazing video. I have followed your video and used bert model for text classification and the accuracy of my model is very low. Can you help me

Ответить