Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jan 31, 2020
1 parent 15ad039 commit 666fc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/book/ch03/demo_corpus_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def my_cws_corpus():
data_root = test_data_path()
corpus_path = os.path.join(data_root, 'my_cws_corpus.txt')
if not os.path.isfile(corpus_path):
with open(corpus_path, 'w') as out:
with open(corpus_path, 'w', encoding='utf-8') as out:
out.write('''商品 和 服务
商品 和服 物美价廉
服务 和 货币''')
Expand Down

0 comments on commit 666fc2f

Please sign in to comment.