Skip to content

Commit ba8a475

Browse files
authored
Ensure ASCII characters only when saving vocab
1 parent d42fa5d commit ba8a475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def create_vocab(sentences, min_count=5, num_words = 100000):
272272

273273
def vocab_to_json(vocab, path):
274274
with open(path, "w") as out:
275-
json.dump(vocab, out, indent=4, ensure_ascii=False)
275+
json.dump(vocab, out, indent=4, ensure_ascii=True)
276276
print('Vocabulary saved to "%s"', path)
277277

278278

0 commit comments

Comments
 (0)