Skip to content

Commit

Permalink
Update lab-12-2-char-seq-rnn.py
Browse files Browse the repository at this point in the history
a minor typo revision
  • Loading branch information
sihyeon-kim authored and kkweon committed Nov 5, 2019
1 parent 07120d9 commit 2fdaeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab-12-2-char-seq-rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

sample = " if you want you"
idx2char = list(set(sample)) # index -> char
char2idx = {c: i for i, c in enumerate(idx2char)} # char -> idex
char2idx = {c: i for i, c in enumerate(idx2char)} # char -> index

# hyper parameters
dic_size = len(char2idx) # RNN input size (one hot size)
Expand Down

0 comments on commit 2fdaeb3

Please sign in to comment.