• Tidak ada hasil yang ditemukan

Recurrent Neural Networks (RNNs) dengan Keras - IR-NLP Lab

N/A
N/A
Protected

Academic year: 2023

Membagikan "Recurrent Neural Networks (RNNs) dengan Keras - IR-NLP Lab"

Copied!
8
0
0

Teks penuh

(1)

Recurrent Neural Networks (RNNs) dengan Keras

Alfan Farizki Wicaksono Fakultas Ilmu Komputer

Universitas Indonesia

(2)

RNNs

X1 X2 X3 X4 X5

h1 h2 h3 h4 h5

O1 O2 O3 O4 O5

One of the famous Deep Learning Architectures in the NLP community

U V

W

Parameters are shared along timesteps

(3)

A time step

Xt ht Ot

U ϵ R

HxN

V ϵ R

2xH

(4)

Example: RNNs for POS Tagger

I went to west java

h1 h2 h3 h4 h5

PRP VBD TO JJ NN

(5)

Example: RNNs for Named-Entity Recognition

http://dirko.github.io/Bidirectional-LSTMs-with-Keras/

(6)

Text Classification : Single-Output RNNs

I went to west java

h1 h2 h3 h4 h5

Label: Travel We only need one single output !

Advantage: The history is unbounded !

(7)

Varian dari RNNs

RNNs suffer from vanishing gradient problem.

LSTMs (Long Short Term Memory)

GRUs (Gated Recurrent Unit)

Please read the following nice blog post!

http://colah.github.io/posts/2015-08-Understanding-LSTMs/

(8)

Perhatikan Penjelasan dari 4 kode berikut

• rnnsingle.py

• maskingrnn.py

• rnnembedding.py

• rnnsinglebatch.py

Referensi

Dokumen terkait

Since all groups had successfully met or exceeded quota in recent years and were in support of the extension effort, the Panhellenic community and Greek Life leaders were able to solely