File size: 310 Bytes
14e4843
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

from datasets import load_dataset

path = 'pminervini/NQ-Swap'

ds = load_dataset("json",
                  data_files={
                      'original': 'nqswap/original.jsonl',
                      'substituted': 'nqswap/substituted.jsonl'
                  })
ds.push_to_hub(path)