From 59e7da3f5306a2f254e690d88d028a437810b45d Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 26 Oct 2018 09:58:12 +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 9c02e0f41..39c6e78b9 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" % (word[0])) + fout.write("%s\n" % (cpt.to_text(word[0]))) def __load_dict(tar_file, dict_size, lang, reverse=False): -- GitLab