Professional Documents
Culture Documents
Deeplearning - Ai Deeplearning - Ai
Deeplearning - Ai Deeplearning - Ai
DeepLearning.AI makes these slides available for educational purposes. You may not use or distribute
these slides for commercial purposes. You may make copies of these slides and use or distribute them for
educational purposes as long as you cite DeepLearning.AI as the source of the slides.
Trigrams
Learnable parameters
Summary
● RNNs model relationships among distant words
Real Real
0 1
Valladolid Madrid
Real Real
0 4
Zaragoza Madrid
Atletico Real
0 1
Madrid Madrid
One to Many
A Brown Puppy
Caption
generation
Many to One
Sentiment Positive
analysis
I am hungry
Encoder Decoder
J’ ai faim
Machine
Translation
Summary
● RNNs can be implemented for a variety of NLP tasks
...
A Vanilla RNN
+
Summary
● Hidden states propagate information through time
Either 0 or 1
...
Plural
x
1 +
-
x x
tanh
Summary
● GRUs “decide” how to update the hidden state
...
Bi-directional RNNs
..
.
..
.
...
Intermediate
layers and
...
...
...
activations
...