Skip to content

Instantly share code, notes, and snippets.

@atroche
Created February 26, 2017 05:45
Show Gist options
  • Save atroche/589bb21fb3723f241a22add5bf998c9f to your computer and use it in GitHub Desktop.
Save atroche/589bb21fb3723f241a22add5bf998c9f to your computer and use it in GitHub Desktop.
alistair@instance-1:~/data$ time cat "training/train-00001-of-00150.json" | parallel --no-notice -q --pipe -P 16 jq -c '.| {document: (.string_sequence|join(" ")), property: (.question_string_sequence|join(" ")), values: .raw_answers}' > train.json
real 0m20.731s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment