Skip to content

Instantly share code, notes, and snippets.

@djokester
Last active August 7, 2018 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djokester/cc958db007e579bf5ade6b4a7ac500f3 to your computer and use it in GitHub Desktop.
Save djokester/cc958db007e579bf5ade6b4a7ac500f3 to your computer and use it in GitHub Desktop.
Reading from the data files for the challenge
import json
f = open("answered_data_10k.in").read().split("\n")
train_set = f[1:9001]
test_set = f[9002:-1]
train = [json.loads(i) for i in train_set]
test = [json.loads(i) for i in test_set]
questions = train + test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment