Skip to content

json: unicode escape codes increase size drastically #1

Description

@mustafa0x

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":"فِي"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions