From 0a69f86645979ffded9a0373a3b005b79964b693 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 26 Oct 2018 11:47:52 +0000 Subject: [PATCH] test=develop --- python/paddle/dataset/wmt16.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/dataset/wmt16.py b/python/paddle/dataset/wmt16.py index 39c6e78b9b4..4a0c1f8cb66 100644 --- a/python/paddle/dataset/wmt16.py +++ b/python/paddle/dataset/wmt16.py @@ -78,7 +78,7 @@ def __build_dict(tar_file, dict_size, save_path, lang): six.iteritems(word_dict), key=lambda x: x[1], reverse=True)): if idx + 3 == dict_size: break - fout.write("%s\n" % (cpt.to_text(word[0]))) + fout.write("%s\n" % (cpt.to_bytes(word[0]))) def __load_dict(tar_file, dict_size, lang, reverse=False): -- GitLab