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

json: unicode escape codes increase size drastically #1

Open
mustafa0x opened this issue Oct 27, 2023 · 0 comments
Open

json: unicode escape codes increase size drastically #1

mustafa0x opened this issue Oct 27, 2023 · 0 comments

Comments

@mustafa0x
Copy link

disambig_mle_calima-msa-r13-0.2.5 is 85mb — after replacing escape codes with unicode it is 51mb.

The command I used to remove escape codes: jq -c . < model.json > model-nofmt.json. In python, pass ensure_ascii=False to json.dumps.

  • Escaped unicode: {"\u0641\u064a": {"diac": "\u0641\u0650\u064a"
  • Unicode: {"في":{"diac":"فِي"
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

1 participant