We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3611338 commit f9d8020Copy full SHA for f9d8020
1 file changed
data/shakespeare_char/prepare.py
@@ -31,7 +31,7 @@
31
def encode(s):
32
return [stoi[c] for c in s] # encoder: take a string, output a list of integers
33
def decode(l):
34
- ''.join([itos[i] for i in l]) # decoder: take a list of integers, output a string
+ return ''.join([itos[i] for i in l]) # decoder: take a list of integers, output a string
35
36
# create the train and test splits
37
n = len(data)
0 commit comments