Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_output_to_jsonl.py output json with unicode #5

Open
xinghuang2050 opened this issue Aug 11, 2023 · 1 comment
Open

write_output_to_jsonl.py output json with unicode #5

xinghuang2050 opened this issue Aug 11, 2023 · 1 comment

Comments

@xinghuang2050
Copy link

To solve the unicode problem in output jsonl file, the following update in write_output_to_jsonl.py is recommended:

Line 27:
temp_file.write(json.dumps(one_json) + '\n')
modified to:
temp_file.write(json.dumps(one_json, ensure_ascii=False)+'\n')

@aplmikex
Copy link
Owner

ok,请提个pr吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants