Skip to content

Commit 0a69f86

Browse files
committed
test=develop
1 parent 59e7da3 commit 0a69f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/dataset/wmt16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __build_dict(tar_file, dict_size, save_path, lang):
7878
six.iteritems(word_dict), key=lambda x: x[1],
7979
reverse=True)):
8080
if idx + 3 == dict_size: break
81-
fout.write("%s\n" % (cpt.to_text(word[0])))
81+
fout.write("%s\n" % (cpt.to_bytes(word[0])))
8282

8383

8484
def __load_dict(tar_file, dict_size, lang, reverse=False):

0 commit comments

Comments
 (0)