Skip to content

Instantly share code, notes, and snippets.

@gaphex
Created February 26, 2020 10:27
Show Gist options
  • Select an option

  • Save gaphex/2338c87031b8580cf54a923df3270c19 to your computer and use it in GitHub Desktop.

Select an option

Save gaphex/2338c87031b8580cf54a923df3270c19 to your computer and use it in GitHub Desktop.
train_data = ["./snli_1.0/snli_1.0_train.jsonl", "./multinli_1.0/multinli_1.0_train.jsonl"]
test_data = ["./snli_1.0/snli_1.0_test.jsonl", "./multinli_1.0/multinli_1.0_dev_matched.jsonl"]
tr_a, tr_b, tr_l = load_snli(train_data)
ts_a, ts_b, ts_l = load_snli(test_data)
fd_tr = prepare_dataset(tr_a, tr_b, tr_l)
fd_ts = prepare_dataset(ts_a, ts_b, ts_l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment